first commit
This commit is contained in:
24
admissioncontrollers/introduction/webhook-template.yaml
Normal file
24
admissioncontrollers/introduction/webhook-template.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
apiVersion: admissionregistration.k8s.io/v1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: example-webhook
|
||||
webhooks:
|
||||
- name: example-webhook.default.svc.cluster.local
|
||||
admissionReviewVersions:
|
||||
- "v1beta1"
|
||||
sideEffects: "None"
|
||||
timeoutSeconds: 30
|
||||
objectSelector:
|
||||
matchLabels:
|
||||
example-webhook-enabled: "true"
|
||||
clientConfig:
|
||||
service:
|
||||
name: example-webhook
|
||||
namespace: default
|
||||
path: "/mutate"
|
||||
caBundle: "${CA_PEM_B64}"
|
||||
rules:
|
||||
- operations: [ "CREATE" ]
|
||||
apiGroups: [""]
|
||||
apiVersions: ["v1"]
|
||||
resources: ["pods"]
|
||||
Reference in New Issue
Block a user