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 →
- Gatekeeper uses Rego in a ConstraintTemplate plus Constraint instances
- Kyverno policies are YAML with match and validate blocks, no new language
- Kyverno supports mutate, generate, verifyImages natively
- Gatekeeper suits teams already using OPA
- 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.
More on Security, RBAC and policy
A developer needs read-only access to one namespace. How do you grant it?BeginnerExplain the difference between Role, ClusterRole, RoleBinding and ClusterRoleBinding.IntermediateA CI pipeline needs to deploy to one namespace. What identity do you give it?IntermediateWhat does a ServiceAccount do and why should you disable the token automount?BeginnerHow do you let pods on EKS access S3 without static keys?IntermediateA pod has access to the node's IAM role through IMDS. How do you prevent credential theft?Advanced