From 2c01592255d90e2636b9a5f40cd7e2fbcb0e5529 Mon Sep 17 00:00:00 2001 From: James Munnelly Date: Mon, 29 Apr 2019 18:09:16 +0100 Subject: Use cert-manager to secure APIService resource Signed-off-by: James Munnelly --- deploy/example-webhook/templates/deployment.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'deploy/example-webhook/templates/deployment.yaml') diff --git a/deploy/example-webhook/templates/deployment.yaml b/deploy/example-webhook/templates/deployment.yaml index fc0acbd..23e9064 100644 --- a/deploy/example-webhook/templates/deployment.yaml +++ b/deploy/example-webhook/templates/deployment.yaml @@ -24,6 +24,9 @@ spec: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + args: + - --tls-cert-file=/tls/tls.crt + - --tls-private-key-file=/tls/tls.key env: - name: GROUP_NAME value: {{ .Values.groupName | quote }} @@ -41,8 +44,16 @@ spec: scheme: HTTPS path: /healthz port: https + volumeMounts: + - name: certs + mountPath: /tls + readOnly: true resources: {{ toYaml .Values.resources | indent 12 }} + volumes: + - name: certs + secret: + secretName: {{ include "example-webhook.servingCertificate" . }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} -- cgit v1.2.3