From 0239815905443edeff2d80461137efcdec53931e Mon Sep 17 00:00:00 2001 From: Andreas Geissler Date: Tue, 10 May 2022 10:30:11 +0200 Subject: [COMMON][POSTGRES] Make DB init jobs ServiceMesh compatible Add wait cycles and sidecar deletion container to ETCD and POSTGRES init charts Issue-ID: OOM-2820 Signed-off-by: Andreas Geissler Change-Id: Iddc8b7d161dddafe53efb0ce809542a60bd957b8 --- kubernetes/common/etcd-init/templates/job.yaml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kubernetes/common/etcd-init/templates') diff --git a/kubernetes/common/etcd-init/templates/job.yaml b/kubernetes/common/etcd-init/templates/job.yaml index 69bcfaaf99..9d7dcc26da 100644 --- a/kubernetes/common/etcd-init/templates/job.yaml +++ b/kubernetes/common/etcd-init/templates/job.yaml @@ -55,6 +55,8 @@ spec: - /bin/sh - -ec - | + {{- if include "common.onServiceMesh" . }} + echo "waiting 15s for istio side cars to be up"; sleep 15s;{{- end }} # Create users export ETCDCTL_ENDPOINTS=http://${ETCD_HOST}:${ETCD_PORT} export ETCDCTL_API=3 @@ -89,6 +91,7 @@ spec: name: localtime readOnly: true resources: {{ include "common.resources" . | nindent 12 }} + {{ include "common.waitForJobContainer" . | indent 6 | trim }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | nindent 10 }} {{- end -}} -- cgit 1.2.3-korg