Make COMMON/MUSIC compatible with Kubernetes v1.17
[oom.git] / kubernetes / common / music / charts / music-cassandra / templates / statefulset.yaml
index 5886649..fbdac61 100644 (file)
@@ -15,7 +15,7 @@
 */}}
 
 
-apiVersion: apps/v1beta1
+apiVersion: apps/v1
 kind: StatefulSet
 metadata:
   name: {{ include "common.fullname" . }}
@@ -39,6 +39,9 @@ spec:
         topologyKey: kubernetes.io/hostname
   serviceName: {{ include "common.servicename" . }}
   replicas: {{ .Values.replicaCount }}
+  selector:
+    matchLabels:
+      app: {{ include "common.name" . }}
   podManagementPolicy: {{ .Values.podManagementPolicy }}
   updateStrategy:
     type: {{ .Values.updateStrategy.type }}