From: milaszki Date: Tue, 7 Jul 2020 11:28:15 +0000 (+0000) Subject: Make COMMON/POSTGRES compatible with Kubernetes v1.17 X-Git-Tag: 7.0.0~367^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=bdcb4166ed1d5c9a75f8c0c34409c55cd0a3cbc7;p=oom.git Make COMMON/POSTGRES compatible with Kubernetes v1.17 Issue-ID: OOM-2479 Signed-off-by: Daniel Milaszkiewicz Change-Id: Ic64b84db2c192cd5d737b5ef6d59aa4b4c20a48e --- diff --git a/kubernetes/common/postgres/templates/_deployment.tpl b/kubernetes/common/postgres/templates/_deployment.tpl index b1aae5f50d..456aa32bc0 100644 --- a/kubernetes/common/postgres/templates/_deployment.tpl +++ b/kubernetes/common/postgres/templates/_deployment.tpl @@ -18,7 +18,7 @@ {{- define "common.postgres.deployment" -}} {{- $dot := .dot }} {{- $pgMode := .pgMode }} -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "common.fullname" $dot }}-{{ $pgMode }} @@ -32,6 +32,9 @@ metadata: spec: serviceName: {{ $dot.Values.service.name }} replicas: 1 + selector: + matchLabels: + app: {{ include "common.name" $dot }}-{{ $pgMode }} template: metadata: labels: