一键导入
kyverno-basics
Install Kyverno, create validation policies, and understand audit vs enforce modes for Kubernetes admission control.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Install Kyverno, create validation policies, and understand audit vs enforce modes for Kubernetes admission control.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Production-grade Go CLI patterns, automated release workflows with Release Please, versioned docs, and coverage enforcement for DevSecOps build pipelines.
Design CLI commands that work independently and compose well for automation. Orchestrator pattern coordinates, subcommands execute discrete tasks.
Implement idiomatic Kubernetes operations with label selectors, strategic merge patches, and proper error handling for production-grade CLI tooling.
Choose the right Go CLI framework for Kubernetes-native tools. Decision matrix compares Cobra, urfave/cli, and Kong for ecosystem alignment and features.
Build Kubernetes-native CLIs in Go with type safety, testability, and complex orchestration logic for deployment tools and cluster automation.
Integrate Go CLIs with Kubernetes using client-go. Automatic config detection works on laptops, CI runners, and cluster pods with minimal RBAC setup.
| name | kyverno-basics |
| description | Install Kyverno, create validation policies, and understand audit vs enforce modes for Kubernetes admission control. |
Kyverno runs as a dynamic admission controller in Kubernetes. It validates, mutates, and generates resources based on policies written in YAML.
Install Kyverno using Helm:
See examples.md for detailed code examples.
Kyverno creates webhook configurations that intercept resource creation/updates before they reach etcd.
Roll out policies in audit mode first:
spec:
validationFailureAction: Audit # Log violations, don't block
Check logs for violations:
kubectl get policyreport -A
NAMESPACE NAME PASS FAIL WARN ERROR SKIP
default polr-ns-default 12 3 0 0 0
production polr-ns-production 45 1 0 0 0
Fix violations. Then switch to Enforce:
spec:
validationFailureAction: Enforce # Block violations
Audit modeEnforce modeDon't deploy straight to Enforce. Discover violations first.
See examples.md for code examples.