Add volume mount for TLS certs
This commit is contained in:
@@ -52,6 +52,11 @@ spec:
|
|||||||
mountPath: /tmp/gatekeeper
|
mountPath: /tmp/gatekeeper
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.certSecret }}
|
||||||
|
- name: tls-cert-key
|
||||||
|
mountPath: {{ .Values.certDir }}
|
||||||
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/os: linux
|
kubernetes.io/os: linux
|
||||||
@@ -66,3 +71,13 @@ spec:
|
|||||||
- key: ca.crt
|
- key: ca.crt
|
||||||
path: ca.crt
|
path: ca.crt
|
||||||
{{- end }}
|
{{- 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