Embracing Change, Policy as code for Kubernetes with OPA and Gatekeeper
summary
Demonstrates policy-as-code using OPA with Gatekeeper: installs Gatekeeper on a kind cluster (three controller-manager pods plus an audit pod), applies a constraint template from the Gatekeeper library, and enforces a required-label rule that blocks an nginx Pod creation until a label is added. Audit mode lists existing violations (demo shows ~17), Gatekeeper exposes validation metrics and a Datadog integration, and templates are reusable across namespaces.
AI-written summary · about
chapters (14)
- 0:00Introduction and welcome
- 2:30What is policy in software
- 4:15Limitations of RBAC in Kubernetes
- 6:07Open Policy Agent overview
- 7:54How Gatekeeper enforces policies
- 9:44Why Gatekeeper is successful
- 13:18Common Gatekeeper policy examples
- 14:41Gatekeeper Library explained
- 16:24Data-driven policy validation
- 17:53Observability and metrics in Gatekeeper
- 18:39Demo setup and overview
- 20:53Applying required labels policy
- 26:18Audit mode and existing violations
- 28:03Q&A session
related talks
28mEmbracing change: Policy-as-code for Kubernetes with OPA and Gatekeeper
27mEmbracing change: Policy-as-code with OPA and Gatekeeper
14mPolicy-as-code for Kubernetes with Gatekeeper
34mGatekeeper: Flexible, Shareable Policy for Kubernetes
41mYou Shall Not Pass! Policy Compliance with OPA Gatekeeper
32mSecuring our clusters with gatekeeper and OPA
30mSecuring the Kubernetes Empire with OpenPolicyAgent and Rego
34mGatekeeper: Flexible, Shareable Policy for Kubernetes
