Help: require-run-as-non-root policy doesn't work #223
Unanswered
tamekitten
asked this question in
Q&A
Replies: 1 comment 8 replies
-
All (for the most part) sample policies are set to |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
After doing the described steps to verify policies on Kyverno 1.5.4:
kubectl create -f https://raw.githubusercontent.com/kyverno/kyverno/main/definitions/release/install.yaml
kustomize build https://github.com/kyverno/policies/pod-security | kubectl apply -f -
kustomize build https://github.com/kyverno/policies/pod-security/tests | kubectl apply -f -
I have some pods created but there should be no one according to the instruction.
3 of them are from test of require-run-as-non-root policy:
Can you give any clue why this policy could not work and what should I do to make it work as expected?
I can find these lines in logs:
Beta Was this translation helpful? Give feedback.
All reactions