Set services names in statefulset templates
[oom.git] / kubernetes / aaf / components / aaf-sms / charts / aaf-sms-vault / templates / statefulset.yaml
index 4023106..b50fe77 100644 (file)
@@ -13,7 +13,7 @@
 # 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 +25,10 @@ metadata:
     heritage: {{ .Release.Service }}
 spec:
   replicas: {{ .Values.replicaCount }}
-  serviceName:
+  selector:
+    matchLabels:
+      app: {{ include "common.name" . }}
+  serviceName: {{ include "common.servicename" . }}
   template:
     metadata:
       labels: