summaryrefslogtreecommitdiffstats
path: root/kubernetes/log/charts/log-elasticsearch/templates/pv.yaml
diff options
context:
space:
mode:
authorJerome Doucerain <jerome.doucerain@bell.ca>2018-03-27 11:27:13 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-27 11:27:13 +0000
commitb59128a3e07f472cd2cc0f25e9e4440981db6a09 (patch)
tree8a9dea132b3d864fc9a2a3144b2f5dad75dfe1b0 /kubernetes/log/charts/log-elasticsearch/templates/pv.yaml
parent7faae98a3527e146e9fe0c0979729e4e3687c206 (diff)
parent5f3b6196c84e31c76c5583b25549d50400fe63d3 (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.yaml21
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 -}}