diff options
author | Alexis de Talhouët <adetalhouet89@gmail.com> | 2018-10-28 21:56:33 -0400 |
---|---|---|
committer | Alexis de Talhouët <alexis.de_talhouet@bell.ca> | 2018-10-30 14:15:52 +0000 |
commit | 634b455354619244a128c072974f2929683b5fd4 (patch) | |
tree | 7cc0ca3bbef4c85844c2f7b4686a76c696bac358 /kubernetes/common/mongo/templates | |
parent | 6723eb71240790956e0a9961019b451296a6d307 (diff) |
Add missing selectors on PVC
Change-Id: If156e738a26c7c19043657c97ac327125c5162db
Issue-ID: OOM-1486
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Diffstat (limited to 'kubernetes/common/mongo/templates')
-rw-r--r-- | kubernetes/common/mongo/templates/pvc.yaml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kubernetes/common/mongo/templates/pvc.yaml b/kubernetes/common/mongo/templates/pvc.yaml index d1558f131f..372c106800 100644 --- a/kubernetes/common/mongo/templates/pvc.yaml +++ b/kubernetes/common/mongo/templates/pvc.yaml @@ -25,6 +25,7 @@ metadata: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" + name: {{ include "common.fullname" . }} {{- if .Values.persistence.annotations }} annotations: {{ toYaml .Values.persistence.annotations | indent 4 }} @@ -35,5 +36,8 @@ spec: resources: requests: storage: {{ .Values.persistence.size }} + selector: + matchLabels: + name: {{ include "common.fullname" . }} storageClassName: "{{ include "common.fullname" . }}-data" {{- end -}} |