diff --git a/charts/invenio/templates/install-init-job.yaml b/charts/invenio/templates/install-init-job.yaml index ca8a2e5..8e763f8 100644 --- a/charts/invenio/templates/install-init-job.yaml +++ b/charts/invenio/templates/install-init-job.yaml @@ -21,6 +21,11 @@ metadata: spec: template: spec: + initContainers: + - name: wait-for-services + image: busybox + command: [ "/bin/sh","-c" ] + args: [ "until echo 'Waiting for opensearch...' && nc -vz -w 5 {{ include "invenio.opensearch.hostname" $ }} 9200; do echo 'And again...'; sleep 10; done;" ] containers: - name: install-init image: {{ required "Missing .Values.web.image" .Values.web.image }}