diff options
author | 2019-12-18 11:32:00 +0000 | |
---|---|---|
committer | 2019-12-18 11:32:00 +0000 | |
commit | 8e28f7b7d9f32e3c472a717a8a8c7874e5724f8b (patch) | |
tree | 65d23a6d7995cd7ddabd95defeb825b49f3234be /kubernetes/sdnc/sdnc-prom/templates/deployment.yaml | |
parent | 1dd281fc7e5d96d585561dd9bdbb90173a698a6a (diff) | |
parent | 25e01d5ab10a68ec4689e4860edcf3c9640d1586 (diff) |
Merge "[SDNC] Use global storage templates for PVC"
Diffstat (limited to 'kubernetes/sdnc/sdnc-prom/templates/deployment.yaml')
-rw-r--r-- | kubernetes/sdnc/sdnc-prom/templates/deployment.yaml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kubernetes/sdnc/sdnc-prom/templates/deployment.yaml b/kubernetes/sdnc/sdnc-prom/templates/deployment.yaml index d457bd8f98..78cd1865e9 100644 --- a/kubernetes/sdnc/sdnc-prom/templates/deployment.yaml +++ b/kubernetes/sdnc/sdnc-prom/templates/deployment.yaml @@ -89,7 +89,11 @@ spec: name: {{ include "common.fullname" . }}-scripts defaultMode: 0755 - name: core-dns-keyfile - hostPath: - path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }} + {{- if .Values.persistence.enabled }} + persistentVolumeClaim: + claimName: {{ include "common.fullname" . }} + {{- else }} + emptyDir: {} + {{- end }} imagePullSecrets: - name: {{ include "common.namespace" . }}-docker-registry-key" |