OPA Gatekeeperとは?
OPA Gatekeeperは、Open Policy Agentをadmission webhookのフローと統合するKubernetes向けのpolicy controllerです。管理者はconstraintとconstraint templateを定義し、Gatekeeperはadmission時に受信リソースをそれらに照らして評価します。constraintを破るリソースは拒否され、Gatekeeperは既存のオブジェクトの違反も監査できます。
なぜ重要か
クラスタには、resource limitを要求したり特権podを禁止したりといったguardrailが必要です。GatekeeperはこれらをAPI境界でコードとして適用するため、非準拠のmanifestが admitされることはありません。
関連ガイド
What Is a Policy as Code Gate?A policy as code gate evaluates infrastructure plans or deployments against machine-readable rules and blocks…
What Is a Validating Webhook?A validating webhook is a Kubernetes admission callback that accepts or rejects a resource without modifying…
What Is an Admission Webhook?An admission webhook is an HTTP callback the Kubernetes API server invokes to validate or mutate a resource b…