Add volume mount for TLS certs

This commit is contained in:
Jonny Stoten
2024-07-02 16:44:10 +01:00
parent 318fd2e904
commit 6f80686ebe

View File

@@ -52,6 +52,11 @@ spec:
mountPath: /tmp/gatekeeper
readOnly: true
{{- end }}
{{- if .Values.certSecret }}
- name: tls-cert-key
mountPath: {{ .Values.certDir }}
readOnly: true
{{- end }}
restartPolicy: Always
nodeSelector:
kubernetes.io/os: linux
@@ -66,3 +71,13 @@ spec:
- key: ca.crt
path: ca.crt
{{- end }}
{{- if .Values.certSecret }}
- name: tls-cert-key
secret:
secretName: {{ .Values.certSecret }}
items:
- key: tls.crt
path: tls.crt
- key: tls.key
path: tls.key
{{- end }}