Merge "vvp -- VNF Validation Platform"
[oom.git] / kubernetes / sdnc / templates / statefulset.yaml
index 784bc69..b30ef38 100644 (file)
@@ -134,7 +134,7 @@ spec:
           - mountPath: /var/log/onap
             name: logs
           resources:
-{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }}
+{{ include "common.resources" . | indent 12 }}
         {{- if .Values.nodeSelector }}
         nodeSelector:
 {{ toYaml .Values.nodeSelector | indent 10 }}
@@ -195,4 +195,7 @@ spec:
       resources:
         requests:
           storage: {{ .Values.persistence.size }}
+      selector:
+        matchLabels:
+          name: {{ include "common.fullname" . }}
   {{ end }}