Policy Engines for Platform Governance
Overview
Kubernetes Admission Control
kubectl apply -f deployment.yaml
β
Kubernetes API Server
β
[Authentication] β [Authorization (RBAC)] β [Admission Control]
β
βββββββββββββββββββββββββ
β Validating Webhooks β β Policy Engine
β Mutating Webhooks β β Policy Engine
βββββββββββββββββββββββββ
β
etcd (persisted)OPA / Gatekeeper
Gatekeeper Architecture
Example: Require Resource Limits on All Containers
Kyverno
Policy Types
Type
Use Case
Example: Disallow latest Image Tag
latest Image TagExample: Auto-Generate NetworkPolicy for New Namespaces
OPA Gatekeeper vs Kyverno
Aspect
OPA Gatekeeper
Kyverno
Policy-as-Code Patterns
Audit Mode vs Enforce Mode
Policy Library
Key Takeaways
Further Reading
Last updated