Interview Prep/Kubernetes/Security, RBAC and policy

What is OPA Gatekeeper's ConstraintTemplate and how does it differ from Kyverno policy?

IntermediateScenarioSecurity, RBAC and policy
Answer

Situation read → The team must choose a policy engine.

What I'd do →

  1. Gatekeeper uses Rego in a ConstraintTemplate plus Constraint instances
  2. Kyverno policies are YAML with match and validate blocks, no new language
  3. Kyverno supports mutate, generate, verifyImages natively
  4. Gatekeeper suits teams already using OPA
  5. Pilot both in audit mode

Why → The choice is mostly about language and capabilities.

Interview tip → Say you pick by team skills and use case.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security, RBAC and policy