Webhook in local k8s and in GKE #2400
-
Hi guys, I've deployed webhook into two clusters - one onprem in my DC, and another one in GCP/GKE. The first one works like a charm, but the second seems to be ignored by k8s - no vault client is injected, and nothing happens in the container. Any ideas about what might be wrong? I've installed it with helm:
and I've used the following values:
Then when I tested it with the following deployment:
On the on prem cluster I get the correct value of the secret, but on GKE I get nothing:
And I don't see any errors in the logs of vault server, webhook or the deployment. Any ideas what's wrong here? Update: It actually works but in a different namespace than the webhook. In the beginning I was trying to test it in the namespace of the webhook and for some reason in doesn't work there. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @TomaszKlosinski, thanks for using Bank-Vaults! The behavior you described is intended, so the webhook won't mutate its own resources (or other Bank-Vaults components that might also be installed in that namespace). Here is the part responsible for adding this namespace selector to the webhook in the Helm chart! |
Beta Was this translation helpful? Give feedback.
Hi @TomaszKlosinski, thanks for using Bank-Vaults!
The behavior you described is intended, so the webhook won't mutate its own resources (or other Bank-Vaults components that might also be installed in that namespace). Here is the part responsible for adding this namespace selector to the webhook in the Helm chart!