kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch16/admission-webhook/helm/mutating-webhook/templates/mutatingWebhookConfiguration.yaml

19 lines
476 B
YAML
Raw Normal View History

apiVersion: admissionregistration.k8s.io/v1beta1
kind: MutatingWebhookConfiguration
metadata:
name: nonrootpolicy
labels:
kiamol: ch16
webhooks:
- name: nonrootpolicy.kiamol.net
rules:
- operations: [ "CREATE", "UPDATE" ]
apiGroups: [""]
apiVersions: ["v1"]
resources: ["pods"]
clientConfig:
service:
name: admission-webhook
namespace: default
path: "/mutate"
caBundle: {{ .Values.caBundle }}