Merge "[CONSUL] Add limits to consul chart."
[oom.git] / kubernetes / aaf / components / aaf-sms / charts / aaf-sms-quorumclient / templates / statefulset.yaml
index 1c6cc93..c72d9e0 100644 (file)
@@ -1,3 +1,4 @@
+{{/*
 # Copyright 2018 Intel Corporation, Inc
 # Modifications © 2020 AT&T
 #
@@ -12,8 +13,9 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+*/}}
 
-apiVersion: apps/v1beta1
+apiVersion: apps/v1
 kind: StatefulSet
 metadata:
   name: {{ include "common.fullname" . }}
@@ -25,7 +27,10 @@ metadata:
     heritage: {{ .Release.Service }}
 spec:
   replicas: {{ .Values.replicaCount }}
-  serviceName:
+  selector:
+    matchLabels:
+      app: {{ include "common.name" . }}
+  serviceName: {{ include "common.servicename" . }}
   template:
     metadata:
       labels: