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/pvc.yaml | |
parent | 7faae98a3527e146e9fe0c0979729e4e3687c206 (diff) | |
parent | 5f3b6196c84e31c76c5583b25549d50400fe63d3 (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.yaml | 25 |
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 -}} |