Kubernetes

Explain how Gatekeeper works

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

On every request sent to the Kubernetes cluster, Gatekeeper sends the policies and the resources to OPA (Open Policy Agent) to check if it violates any policy. If it does, Gatekeeper will return the policy error message back. If it isn't violates any policy, the request will reach the cluster.