31 lines
596 B
YAML
31 lines
596 B
YAML
---
|
|
apiVersion: admissionregistration.k8s.io/v1
|
|
kind: MutatingWebhookConfiguration
|
|
metadata:
|
|
name: pod-mutation
|
|
webhooks:
|
|
- name: pod-mutation.ingress-nginx.svc
|
|
clientConfig:
|
|
service:
|
|
name: webhook
|
|
namespace: ingress-nginx
|
|
path: "/api/v1/mutate/pod"
|
|
port: 443
|
|
caBundle: Base64 encoded Certificate Authority PEM file
|
|
rules:
|
|
- operations:
|
|
- "CREATE"
|
|
- "UPDATE"
|
|
apiVersions:
|
|
- "*"
|
|
apiGroups:
|
|
- "*"
|
|
resources:
|
|
- "pods/*"
|
|
scope: "Namespaced"
|
|
sideEffects: None
|
|
admissionReviewVersions:
|
|
- "v1"
|
|
failurePolicy: Ignore
|
|
|