Merge "vvp -- VNF Validation Platform"
[oom.git] / kubernetes / common / mysql / templates / statefulset.yaml
index 0f340f0..f73b10f 100644 (file)
@@ -147,7 +147,7 @@ spec:
           - mountPath: /etc/mysql/conf.d
             name: conf
           resources:
-{{ toYaml .Values.resources | indent 12 }}
+{{ include "common.resources" . | indent 12 }}
         {{- if .Values.nodeSelector }}
         nodeSelector:
 {{ toYaml .Values.nodeSelector | indent 10 }}
@@ -251,4 +251,7 @@ spec:
       resources:
         requests:
           storage: {{ .Values.persistence.size }}
+      selector:
+        matchLabels:
+          name: {{ include "common.fullname" . }}
   {{ end }}