diff --git a/ansible/roles/traffic-engine/files/helm/templates/deployment-firewall.yaml b/ansible/roles/traffic-engine/files/helm/templates/deployment-firewall.yaml index 25ef1b88..634b18ca 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/deployment-firewall.yaml +++ b/ansible/roles/traffic-engine/files/helm/templates/deployment-firewall.yaml @@ -257,6 +257,20 @@ spec: {{- end }} {{- end }} + - name: init-packet-io-engine-ready + image: "registry.gdnt-cloud.website/tsg-init:{{ .Chart.AppVersion }}" + imagePullPolicy: Never + command: + - "bash" + - "-ec" + - | + until [ $(curl -s -o /dev/null -w "%{http_code}" http://${NODE_IP}:9086/probe) -eq 200 ]; do echo waiting for packet-io-engine ready; sleep 2; done + env: + - name: NODE_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP + - name: firewall-init image: "registry.gdnt-cloud.website/tsg-init:{{ .Chart.AppVersion }}" imagePullPolicy: Never diff --git a/ansible/roles/traffic-engine/files/helm/templates/deployment-proxy.yaml b/ansible/roles/traffic-engine/files/helm/templates/deployment-proxy.yaml index f8cd968c..6671d4ef 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/deployment-proxy.yaml +++ b/ansible/roles/traffic-engine/files/helm/templates/deployment-proxy.yaml @@ -226,6 +226,20 @@ spec: until nslookup {{ .Values.external_resources.cm.local_cache.cache_name }}-redis-master.tsg-os-system.svc; do echo waiting for cm cache service; sleep 2; done {{- end }} + - name: init-packet-io-engine-ready + image: "registry.gdnt-cloud.website/tsg-init:{{ .Chart.AppVersion }}" + imagePullPolicy: Never + command: + - "bash" + - "-ec" + - | + until [ $(curl -s -o /dev/null -w "%{http_code}" http://${NODE_IP}:9086/probe) -eq 200 ]; do echo waiting for packet-io-engine ready; sleep 2; done + env: + - name: NODE_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP + - name: proxy-init image: "registry.gdnt-cloud.website/tsg-init:{{ .Chart.AppVersion }}" imagePullPolicy: Never diff --git a/ansible/roles/traffic-engine/files/helm/templates/deployment-service-chaining.yaml b/ansible/roles/traffic-engine/files/helm/templates/deployment-service-chaining.yaml index 788e9241..7ff0f862 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/deployment-service-chaining.yaml +++ b/ansible/roles/traffic-engine/files/helm/templates/deployment-service-chaining.yaml @@ -211,6 +211,20 @@ spec: until nslookup {{ .Values.external_resources.cm.local_cache.cache_name }}-redis-master.tsg-os-system.svc; do echo waiting for cm cache service; sleep 2; done {{- end }} + - name: init-packet-io-engine-ready + image: "registry.gdnt-cloud.website/tsg-init:{{ .Chart.AppVersion }}" + imagePullPolicy: Never + command: + - "bash" + - "-ec" + - | + until [ $(curl -s -o /dev/null -w "%{http_code}" http://${NODE_IP}:9086/probe) -eq 200 ]; do echo waiting for packet-io-engine ready; sleep 2; done + env: + - name: NODE_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP + - name: service-chaining-init image: "registry.gdnt-cloud.website/tsg-init:{{ .Chart.AppVersion }}" imagePullPolicy: Never diff --git a/ansible/roles/traffic-engine/files/helm/templates/deployment-shaping.yaml b/ansible/roles/traffic-engine/files/helm/templates/deployment-shaping.yaml index fae0a9a5..d78587f7 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/deployment-shaping.yaml +++ b/ansible/roles/traffic-engine/files/helm/templates/deployment-shaping.yaml @@ -202,6 +202,20 @@ spec: until nslookup {{ .Values.external_resources.cm.local_cache.cache_name }}-redis-master.tsg-os-system.svc; do echo waiting for cm cache service; sleep 2; done {{- end }} + - name: init-packet-io-engine-ready + image: "registry.gdnt-cloud.website/tsg-init:{{ .Chart.AppVersion }}" + imagePullPolicy: Never + command: + - "bash" + - "-ec" + - | + until [ $(curl -s -o /dev/null -w "%{http_code}" http://${NODE_IP}:9086/probe) -eq 200 ]; do echo waiting for packet-io-engine ready; sleep 2; done + env: + - name: NODE_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP + - name: shaping-init image: "registry.gdnt-cloud.website/tsg-init:{{ .Chart.AppVersion }}" imagePullPolicy: Never