summaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authormilaszki <daniel.milaszkiewicz@nokia.com>2020-07-07 11:28:15 +0000
committermilaszki <daniel.milaszkiewicz@nokia.com>2020-07-07 11:28:15 +0000
commitbdcb4166ed1d5c9a75f8c0c34409c55cd0a3cbc7 (patch)
tree88a59244f0c8f4f3e8345fd824cd40066b713112 /kubernetes
parent88c4c3788d35af106d46ace89fabfb1efca1bca8 (diff)
Make COMMON/POSTGRES compatible with Kubernetes v1.17
Issue-ID: OOM-2479 Signed-off-by: Daniel Milaszkiewicz <daniel.milaszkiewicz@nokia.com> Change-Id: Ic64b84db2c192cd5d737b5ef6d59aa4b4c20a48e
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/common/postgres/templates/_deployment.tpl5
1 files changed, 4 insertions, 1 deletions
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: