X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=kubernetes%2Fcommon%2Fetcd-init%2Ftemplates%2Fjob.yaml;fp=kubernetes%2Fcommon%2Fetcd-init%2Ftemplates%2Fjob.yaml;h=55526a34a19b56537d1f74568b5a75ed83c95312;hb=d518f733756ef9d9b1b7015d509906152d6a1288;hp=f1f1b0e27e0312c78506a52cd7ff88566b4b43d0;hpb=148634b5a6d0d0a8abaee04f416dbae6d6814e38;p=oom.git diff --git a/kubernetes/common/etcd-init/templates/job.yaml b/kubernetes/common/etcd-init/templates/job.yaml index f1f1b0e27e..55526a34a1 100644 --- a/kubernetes/common/etcd-init/templates/job.yaml +++ b/kubernetes/common/etcd-init/templates/job.yaml @@ -27,6 +27,12 @@ spec: backoffLimit: {{ .Values.backoffLimit }} 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" . }} @@ -37,8 +43,8 @@ spec: command: - /app/ready.py args: - - --container-name - - {{ .Values.etcd.containerName }} + - --service-name + - {{ .Values.etcd.serviceName }} env: - name: NAMESPACE valueFrom: