4 ms·
I’ve developed a Kubernetes mutating admission webhook that intercepts Pod creation and update requests to automatically rewrite container image references base
by flemzord 1y ago
I’ve developed a Kubernetes mutating admission webhook that intercepts Pod creation and update requests to automatically rewrite container image references based on configurable rules. This facilitates redirecting images from public registries (like Docker Hub, GCR, Quay.io) to internal mirrors or caches, enhancing reliability and security.
- remram 1y agoI thought this was possible to do with CEL but it looks like this has barely reached alpha: https://kubernetes.io/docs/reference/access-authn-authz/mutating-admission-policy/ https://kubernetes.io/docs/reference/access-authn-authz/muta... Webhooks like yours will still be needed for a while (or programmable frameworks like Kyverno).
- antonvs 1y agoHow would this interact with IaC systems like ArgoCD - I imagine conflicts would be detected and ArgoCD would try to autosync to restore the cluster state to match the repo.