From 9460cc1e5b4f8c93cef94cccd758b2fb45502f47 Mon Sep 17 00:00:00 2001 From: Dmitry Dunaev Date: Tue, 11 Jan 2022 16:13:35 +0300 Subject: [PATCH] [WIFI-6393] Add: initContainer to wait for Kafka to be ready Signed-off-by: Dmitry Dunaev --- helm/templates/deployment.yaml | 10 ++++++++++ helm/values.yaml | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 92586c8..26e0b44 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -36,6 +36,16 @@ spec: {{- end }} spec: + initContainers: + - name: wait-kafka + image: "{{ .Values.images.dockerize.repository }}:{{ .Values.images.dockerize.tag }}" + imagePullPolicy: {{ .Values.images.dockerize.pullPolicy }} + args: + - -wait + - tcp://{{ index .Values.configProperties "openwifi.kafka.brokerlist" }} + - -timeout + - 600s + containers: - name: owsec diff --git a/helm/values.yaml b/helm/values.yaml index 96a5fdb..5e62850 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -15,6 +15,10 @@ images: # registry: tip-tip-wlan-cloud-ucentral.jfrog.io # username: username # password: password + dockerize: + repository: tip-tip-wlan-cloud-ucentral.jfrog.io/dockerize + tag: 0.16.0 + pullPolicy: IfNotPresent services: owsec: