k8s-kyverno-troubleshooting
Installation
SKILL.md
Kyverno troubleshooting
Find out why Kyverno denies, changes or does not police a resource, and propose a fix. Read first, ask before changing. Run the investigation commands freely. Run a command under an "Ask first" line only after the user approves that exact command; if your credentials do not allow it, give it to the user to run. Never run a "Proposed fix"; hand it to the user.
Kyverno runs as admission webhooks plus background controllers. Two policy families exist side by side:
- ClusterPolicy and Policy (
kyverno.io/v1): rules withvalidate,mutate,generateorverifyImages. Deprecated in Kyverno 1.19 and planned for removal in 1.20; the API server prints a deprecation warning for them. - CEL policies (
policies.kyverno.io/v1): ValidatingPolicy, MutatingPolicy, GeneratingPolicy, DeletingPolicy, ImageValidatingPolicy, and theirNamespaced*variants.