Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permission issue when injecting to the non-default namespace #7

Open
orvardi opened this issue Apr 1, 2019 · 2 comments
Open

permission issue when injecting to the non-default namespace #7

orvardi opened this issue Apr 1, 2019 · 2 comments
Assignees

Comments

@orvardi
Copy link

orvardi commented Apr 1, 2019

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?

@morvencao
Copy link
Owner

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
Copy link
Owner

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 morvencao changed the title "unable to validate against any pod security policy: []" when injecting to the non-default namespace permission issue when injecting to the non-default namespace Apr 5, 2020
@morvencao morvencao self-assigned this Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants