diff options
author | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2024-04-03 14:12:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2024-04-03 14:12:59 +0000 |
commit | 6d5a8690d675f65a8ec38b2c03f6fde2c2d2d9b8 (patch) | |
tree | a0a041e5e9ce2874018c1023c2c27b0a6161650d /kubernetes/common/postgres-init | |
parent | e19c074716bed2ad57ae4beb9cedae132c00efa9 (diff) | |
parent | d518f733756ef9d9b1b7015d509906152d6a1288 (diff) |
Merge "[COMMON][READINESS] Update readiness image and use service feature"
Diffstat (limited to 'kubernetes/common/postgres-init')
-rw-r--r-- | kubernetes/common/postgres-init/templates/job.yaml | 6 | ||||
-rw-r--r-- | kubernetes/common/postgres-init/values.yaml | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/kubernetes/common/postgres-init/templates/job.yaml b/kubernetes/common/postgres-init/templates/job.yaml index 6736559b81..348dda517a 100644 --- a/kubernetes/common/postgres-init/templates/job.yaml +++ b/kubernetes/common/postgres-init/templates/job.yaml @@ -28,6 +28,12 @@ spec: backoffLimit: 20 template: metadata: + annotations: + # Workarround to exclude K8S API from istio communication + # as init-container (readinessCheck) does not work with the + # Istio CNI plugin, see: + # (https://istio.io/latest/docs/setup/additional-setup/cni/#compatibility-with-application-init-containers) + traffic.sidecar.istio.io/excludeOutboundPorts: "443" labels: app: {{ include "common.name" . }} release: {{ include "common.release" . }} diff --git a/kubernetes/common/postgres-init/values.yaml b/kubernetes/common/postgres-init/values.yaml index d2eb090142..160e6720ed 100644 --- a/kubernetes/common/postgres-init/values.yaml +++ b/kubernetes/common/postgres-init/values.yaml @@ -19,6 +19,7 @@ global: postgres: service: name: pgset + name2: tcp-pgset-primary container: name: postgres @@ -98,7 +99,8 @@ serviceAccount: readinessCheck: wait_for: - - '{{ .Values.global.postgres.container.name }}' + services: + - '{{ .Values.global.postgres.service.name2 }}' wait_for_job_container: containers: |