ImagePolicyWebhook
A Kubernetes admission plugin that asks an external web service whether each pod's images may run, and refuses the pod when the answer is no.
In more detail
It is switched on in the API server's admission plugins and configured through an AdmissionConfiguration file that points at a kubeconfig for the backend. The defaultAllow setting decides what happens when the backend cannot be reached. With defaultAllow false, an unreachable backend refuses every pod, which fails safe but can stop the cluster.
Example
--enable-admission-plugins=NodeRestriction,ImagePolicyWebhookRelated terms
- admission controller — A Kubernetes API server plugin that checks or changes each request after authentication and authorization, before the object is stored.
- AdmissionConfiguration — A Kubernetes API server configuration file that sets defaults and exemptions for admission plugins such as Pod Security Admission.
- webhook — An HTTP request a provider sends to an address you registered, to tell you an event happened, instead of you polling for it.
Taught in
- Allowed Registries: Admission That Refuses Images — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Signing And Verifying Images With Cosign — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Mock Exam: Seventeen Security Tasks Against The Clock — Certified Kubernetes Security Specialist (CKS) Exam Prep