From b2def010de36fba27327376d9bcee94d26d8b6f0 Mon Sep 17 00:00:00 2001
From: Pawel Wieczorek
Date: Thu, 17 Jan 2019 19:22:37 +0100
Subject: Use explicit PVC selectors for Cassandra
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
---
.../common/music/charts/music-cassandra/templates/statefulset.yaml | 1 +
1 file changed, 1 insertion(+)
(limited to 'kubernetes/common/music')
diff --git a/kubernetes/common/music/charts/music-cassandra/templates/statefulset.yaml b/kubernetes/common/music/charts/music-cassandra/templates/statefulset.yaml
index 009c40dbcc..cdea9e3da2 100644
--- a/kubernetes/common/music/charts/music-cassandra/templates/statefulset.yaml
+++ b/kubernetes/common/music/charts/music-cassandra/templates/statefulset.yaml
@@ -134,5 +134,6 @@ spec:
storage: {{ .Values.persistence.size | quote }}
selector:
matchLabels:
+ app: {{ include "common.name" . }}
release: "{{ .Release.Name }}"
{{- end }}
--
cgit 1.2.3-korg