Add volume mount for TLS certs
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user