diff options
author | milaszki <daniel.milaszkiewicz@nokia.com> | 2020-07-07 11:28:15 +0000 |
---|---|---|
committer | milaszki <daniel.milaszkiewicz@nokia.com> | 2020-07-07 11:28:15 +0000 |
commit | bdcb4166ed1d5c9a75f8c0c34409c55cd0a3cbc7 (patch) | |
tree | 88a59244f0c8f4f3e8345fd824cd40066b713112 /kubernetes/common/postgres/templates | |
parent | 88c4c3788d35af106d46ace89fabfb1efca1bca8 (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/common/postgres/templates')
-rw-r--r-- | kubernetes/common/postgres/templates/_deployment.tpl | 5 |
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: |