2019-03-18 18:59:30 +02:00
|
|
|
# Example of MutatingWebhookConfiguration which can be used for debug, when controller is placed on master node
|
2019-03-22 22:11:55 +02:00
|
|
|
# To register webhook for debug, replace ${CA_BUNDLE} with corresponding data from ~/.kube/config and create this resource
|
2019-02-13 19:57:18 +02:00
|
|
|
apiVersion: admissionregistration.k8s.io/v1beta1
|
|
|
|
kind: MutatingWebhookConfiguration
|
|
|
|
metadata:
|
2019-05-21 18:36:24 -07:00
|
|
|
name: nirmata-kyverno-webhook-cfg-debug
|
2019-02-13 19:57:18 +02:00
|
|
|
labels:
|
2019-05-21 18:36:24 -07:00
|
|
|
app: kyverno
|
2019-02-13 19:57:18 +02:00
|
|
|
webhooks:
|
2019-05-21 18:36:24 -07:00
|
|
|
- name: webhook.nirmata.kyverno
|
2019-02-13 19:57:18 +02:00
|
|
|
clientConfig:
|
|
|
|
url: "https://localhost/mutate"
|
2019-03-01 18:37:58 +02:00
|
|
|
caBundle: ${CA_BUNDLE}
|
2019-02-13 19:57:18 +02:00
|
|
|
rules:
|
|
|
|
- operations: [ "CREATE" ]
|
|
|
|
resources: [ "*/*" ]
|
|
|
|
apiGroups: [ "*" ]
|
|
|
|
apiVersions: [ "*" ]
|