Use explicit PVC selectors for Cassandra
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Thu, 17 Jan 2019 18:22:37 +0000 (19:22 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Fri, 18 Jan 2019 17:56:44 +0000 (18:56 +0100)
Using release label only can result in claiming Persistent Volume with
mismatched Cassandra version (2.1.20 vs. 3.11.3 as of writing this
patch).

Issue-ID: OOM-1592
Change-Id: I9f534982f6ae91347b17676b1223d397ac28953d
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
charts/aai-cassandra/templates/statefulset.yaml

index 4a8ae39..a576eba 100644 (file)
@@ -127,5 +127,6 @@ spec:
             storage: {{ .Values.persistence.size | quote }}
         selector:
           matchLabels:
+            app: {{ include "common.name" . }}
             release: "{{ .Release.Name }}"
   {{- end }}