From 305089ce54bf5ff1c77a6f7da98149203dbbfb4a Mon Sep 17 00:00:00 2001 From: milaszki Date: Tue, 7 Jul 2020 12:31:21 +0000 Subject: [PATCH] Make COMMON/MONGO compatible with Kubernetes v1.17 Issue-ID: OOM-2483 Signed-off-by: Daniel Milaszkiewicz Change-Id: If96bd1c72aa571314fc8665d382252b531554146 --- kubernetes/common/mongo/templates/statefulset.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- 2.16.6