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: