diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-07-08 06:17:23 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-07-08 06:17:23 +0000 |
commit | d1635f1e74997d31a40b75106e98f877e5745f2b (patch) | |
tree | 59cc63d16851790aaff480f918ee50851add4685 /kubernetes/common/postgres/templates | |
parent | 47db3c69440081624009366f94cbaec0377d6858 (diff) | |
parent | bdcb4166ed1d5c9a75f8c0c34409c55cd0a3cbc7 (diff) |
Merge "Make COMMON/POSTGRES compatible with Kubernetes v1.17"
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: |