diff options
author | Jerome Doucerain <jerome.doucerain@bell.ca> | 2018-03-27 11:27:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-27 11:27:13 +0000 |
commit | b59128a3e07f472cd2cc0f25e9e4440981db6a09 (patch) | |
tree | 8a9dea132b3d864fc9a2a3144b2f5dad75dfe1b0 /kubernetes/log/charts/log-elasticsearch/templates/pv.yaml | |
parent | 7faae98a3527e146e9fe0c0979729e4e3687c206 (diff) | |
parent | 5f3b6196c84e31c76c5583b25549d50400fe63d3 (diff) |
Merge "Add standardized helm chart for log"
Diffstat (limited to 'kubernetes/log/charts/log-elasticsearch/templates/pv.yaml')
-rw-r--r-- | kubernetes/log/charts/log-elasticsearch/templates/pv.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/kubernetes/log/charts/log-elasticsearch/templates/pv.yaml b/kubernetes/log/charts/log-elasticsearch/templates/pv.yaml new file mode 100644 index 0000000000..dba12d4125 --- /dev/null +++ b/kubernetes/log/charts/log-elasticsearch/templates/pv.yaml @@ -0,0 +1,21 @@ +{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}} +kind: PersistentVolume +apiVersion: v1 +metadata: + name: {{ include "common.fullname" . }} + namespace: {{ include "common.namespace" . }} + labels: + app: {{ include "common.name" . }} + chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" + release: "{{ .Release.Name }}" + heritage: "{{ .Release.Service }}" + name: {{ include "common.fullname" . }} +spec: + capacity: + storage: {{ .Values.persistence.size}} + accessModes: + - {{ .Values.persistence.accessMode }} + persistentVolumeReclaimPolicy: {{ .Values.persistence.volumeReclaimPolicy }} + hostPath: + path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ .Release.Namespace }}/{{ .Values.persistence.mountSubPath }} +{{- end -}} |