danfromtitan / envars-from-node-labels

Export container environment variables from K8s node labels
Apache License 2.0
24 stars 4 forks source link

From another namespace webhook is not triggering #1

Closed shaikshakeel closed 2 years ago

shaikshakeel commented 2 years ago

Hi,

When I am trying to run my pods in another namespace. web hook is not triggering. I changed namespaceSelector to proper namespace and enabled containers also. still it is not working. I don't see any logs in webhook pod also.

Am I missing anything.?

And FYI We are using kustomize

danfromtitan commented 2 years ago

Make sure the webhook pod's running and there is a log line indicating the service has started:

2022/03/11 23:07:03 starting admission controller ...

As for kustomize, you'd have to provide your own installation method for that.

shaikshakeel commented 2 years ago

Hi @danfromtitan Yes. I can see above log line in webbhook. for given examples it is working fine. If I remove namespaceSelector it is working fine, from every namespace webhook is receiving events. but if I add namespaceSelector for a specific namespace it is not working.

danfromtitan commented 2 years ago

The examples are also using a namespace different than default, any other namespace should work as long as resources are PODs created in that namespace. Double-check the mutatingwebhookconfigurations you have created has the right name under namespaceSelector.