summaryrefslogtreecommitdiffstats
path: root/kubernetes/log/charts/log-elasticsearch/templates/pvc.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/pvc.yaml
parent7faae98a3527e146e9fe0c0979729e4e3687c206 (diff)
parent5f3b6196c84e31c76c5583b25549d50400fe63d3 (diff)
Merge "Add standardized helm chart for log"
Diffstat (limited to 'kubernetes/log/charts/log-elasticsearch/templates/pvc.yaml')
-rw-r--r--kubernetes/log/charts/log-elasticsearch/templates/pvc.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/kubernetes/log/charts/log-elasticsearch/templates/pvc.yaml b/kubernetes/log/charts/log-elasticsearch/templates/pvc.yaml
new file mode 100644
index 0000000000..c046f4604a
--- /dev/null
+++ b/kubernetes/log/charts/log-elasticsearch/templates/pvc.yaml
@@ -0,0 +1,25 @@
+{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: {{ include "common.fullname" . }}
+ namespace: {{ include "common.namespace" . }}
+ labels:
+ app: {{ include "common.name" . }}
+ chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+ release: "{{ .Release.Name }}"
+ heritage: "{{ .Release.Service }}"
+{{- if .Values.persistence.annotations }}
+ annotations:
+{{ toYaml .Values.persistence.annotations | indent 4 }}
+{{- end }}
+spec:
+ selector:
+ matchLabels:
+ name: {{ include "common.fullname" . }}
+ accessModes:
+ - {{ .Values.persistence.accessMode }}
+ resources:
+ requests:
+ storage: {{ .Values.persistence.size }}
+{{- end -}}