kube-sidecar-injector
kube-sidecar-injector copied to clipboard
permission issue when injecting to the non-default namespace
Hello, I have followed the tutorial and managed to deploy and run an injected pod. However, when I run the same deployment definition in a different namespace, it is unable to start the pod. I have labeled the new namespace as instructed.
Are there any additional steps needed in order to inject pods in another namespace?
Sorry for late response. I have added some troubleshooting steps here: https://github.com/morvencao/kube-mutating-webhook-tutorial#troubleshooting Please check if that helps.
It's more likely that your issue is caused by permission issue. Please try the latest code, I have made some updated for docker image to make it run as non-root user.