2019-03-18 18:59:30 +02:00
|
|
|
# MutatingWebhookConfiguration document which should be used when placing controller inside the cluster
|
2019-02-12 16:12:03 +02:00
|
|
|
apiVersion: admissionregistration.k8s.io/v1beta1
|
|
|
|
kind: MutatingWebhookConfiguration
|
|
|
|
metadata:
|
2019-02-13 15:28:16 +02:00
|
|
|
name: nirmata-kube-policy-webhook-cfg
|
2019-02-12 16:12:03 +02:00
|
|
|
labels:
|
2019-02-13 15:28:16 +02:00
|
|
|
app: kube-policy
|
2019-02-12 16:12:03 +02:00
|
|
|
webhooks:
|
2019-02-13 15:28:16 +02:00
|
|
|
- name: webhook.nirmata.kube-policy
|
2019-02-12 16:12:03 +02:00
|
|
|
clientConfig:
|
|
|
|
service:
|
2019-02-13 15:28:16 +02:00
|
|
|
name: kube-policy-svc
|
2019-02-12 16:12:03 +02:00
|
|
|
namespace: default
|
|
|
|
path: "/mutate"
|
2019-03-01 18:37:58 +02:00
|
|
|
caBundle: ${CA_BUNDLE}
|
2019-02-12 16:12:03 +02:00
|
|
|
rules:
|
|
|
|
- operations: [ "CREATE" ]
|
|
|
|
resources: [ "*/*" ]
|
|
|
|
apiGroups: [ "*" ]
|
|
|
|
apiVersions: [ "*" ]
|