From bdcb4166ed1d5c9a75f8c0c34409c55cd0a3cbc7 Mon Sep 17 00:00:00 2001 From: milaszki Date: Tue, 7 Jul 2020 11:28:15 +0000 Subject: Make COMMON/POSTGRES compatible with Kubernetes v1.17 Issue-ID: OOM-2479 Signed-off-by: Daniel Milaszkiewicz Change-Id: Ic64b84db2c192cd5d737b5ef6d59aa4b4c20a48e --- kubernetes/common/postgres/templates/_deployment.tpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kubernetes/common') 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: -- cgit 1.2.3-korg