From bb957259da3b0ab6c5e27594ce15095de105676e Mon Sep 17 00:00:00 2001 From: haslersn Date: Sun, 27 Nov 2022 13:37:17 +0100 Subject: [PATCH] Make webhook example compatible with TLS secrets Kubernetes has a builtin Secret type `kubernetes.io/tls` which uses the keys `tls.crt` and `tls.key`. --- deploy/kubernetes/webhook-example/webhook.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/kubernetes/webhook-example/webhook.yaml b/deploy/kubernetes/webhook-example/webhook.yaml index ad51ae66..f0b3fe46 100644 --- a/deploy/kubernetes/webhook-example/webhook.yaml +++ b/deploy/kubernetes/webhook-example/webhook.yaml @@ -20,7 +20,7 @@ spec: - name: snapshot-validation image: registry.k8s.io/sig-storage/snapshot-validation-webhook:v6.1.0 # change the image if you wish to use your own custom validation server image imagePullPolicy: IfNotPresent - args: ['--tls-cert-file=/etc/snapshot-validation-webhook/certs/cert.pem', '--tls-private-key-file=/etc/snapshot-validation-webhook/certs/key.pem'] + args: ['--tls-cert-file=/etc/snapshot-validation-webhook/certs/tls.crt', '--tls-private-key-file=/etc/snapshot-validation-webhook/certs/tls.key'] ports: - containerPort: 443 # change the port as needed volumeMounts: