kube-sidecar-injector icon indicating copy to clipboard operation
kube-sidecar-injector copied to clipboard

permission issue when injecting to the non-default namespace

Open orvardi opened this issue 5 years ago • 2 comments

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?

orvardi avatar Apr 01 '19 09:04 orvardi

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.

morvencao avatar Apr 04 '20 12:04 morvencao

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.

morvencao avatar Apr 05 '20 05:04 morvencao