summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/music/charts
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/common/music/charts')
-rw-r--r--kubernetes/common/music/charts/music-cassandra/templates/statefulset.yaml9
-rw-r--r--kubernetes/common/music/charts/zookeeper/templates/statefulset.yaml3
2 files changed, 9 insertions, 3 deletions
diff --git a/kubernetes/common/music/charts/music-cassandra/templates/statefulset.yaml b/kubernetes/common/music/charts/music-cassandra/templates/statefulset.yaml
index 103b1df1c1..009c40dbcc 100644
--- a/kubernetes/common/music/charts/music-cassandra/templates/statefulset.yaml
+++ b/kubernetes/common/music/charts/music-cassandra/templates/statefulset.yaml
@@ -103,7 +103,7 @@ spec:
fieldRef:
fieldPath: status.podIP
volumeMounts:
- - name: cassandra-data
+ - name: {{ template "common.name" . }}-data
mountPath: /var/lib/cassandra
resources:
{{ toYaml .Values.resources | indent 10 }}
@@ -112,12 +112,12 @@ spec:
hostPath:
path: /etc/localtime
{{- if not .Values.persistence.enabled }}
- - name: cassandra-data
+ - name: {{ template "common.name" . }}-data
emptyDir: {}
{{- else }}
volumeClaimTemplates:
- metadata:
- name: cassandra-data
+ name: {{ template "common.name" . }}-data
labels:
app: {{ template "common.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
@@ -132,4 +132,7 @@ spec:
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
+ selector:
+ matchLabels:
+ release: "{{ .Release.Name }}"
{{- end }}
diff --git a/kubernetes/common/music/charts/zookeeper/templates/statefulset.yaml b/kubernetes/common/music/charts/zookeeper/templates/statefulset.yaml
index 1efd46657c..135b59e2b6 100644
--- a/kubernetes/common/music/charts/zookeeper/templates/statefulset.yaml
+++ b/kubernetes/common/music/charts/zookeeper/templates/statefulset.yaml
@@ -185,4 +185,7 @@ spec:
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
+ selector:
+ matchLabels:
+ release: "{{ .Release.Name }}"
{{- end }}