Merge "Make COMMON/MUSIC compatible with Kubernetes v1.17"
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 8 Jul 2020 06:21:53 +0000 (06:21 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 8 Jul 2020 06:21:53 +0000 (06:21 +0000)
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 }}