From: milaszki Date: Tue, 7 Jul 2020 12:31:21 +0000 (+0000) Subject: Make COMMON/MONGO compatible with Kubernetes v1.17 X-Git-Tag: 7.0.0~361^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=305089ce54bf5ff1c77a6f7da98149203dbbfb4a;p=oom.git Make COMMON/MONGO compatible with Kubernetes v1.17 Issue-ID: OOM-2483 Signed-off-by: Daniel Milaszkiewicz Change-Id: If96bd1c72aa571314fc8665d382252b531554146 --- diff --git a/kubernetes/common/mongo/templates/statefulset.yaml b/kubernetes/common/mongo/templates/statefulset.yaml index ae373343d3..111bc80586 100644 --- a/kubernetes/common/mongo/templates/statefulset.yaml +++ b/kubernetes/common/mongo/templates/statefulset.yaml @@ -14,7 +14,7 @@ # limitations under the License. */}} -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "common.fullname" . }} @@ -27,6 +27,9 @@ metadata: spec: serviceName: {{ .Values.service.name }} replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app: {{ include "common.name" . }} template: metadata: labels: