🐞 fix:change nc command to curl for test packet-io-engine is ready or not

This commit is contained in:
linxin
2024-05-21 18:31:05 +08:00
committed by 付明卫
parent 41549bad24
commit 376dfaf3b8

View File

@@ -180,7 +180,7 @@ spec:
- "bash"
- "-ec"
- |
while ! nc -z localhost 9086; do sleep 1; done;
until [ $(curl -s -o /dev/null -w "%{http_code}" http://localhost:9086/probe) -eq 200 ]; do echo waiting for packet-io-engine ready; sleep 2; done
/opt/tsg/mrzcpd/bin/monit_device --prometheus-client
image: "registry.gdnt-cloud.website/tsg-packet-io-engine:{{ .Chart.AppVersion }}"
imagePullPolicy: Never
@@ -225,7 +225,7 @@ spec:
- "bash"
- "-ec"
- |
while ! nc -z localhost 9086; do sleep 1; done;
until [ $(curl -s -o /dev/null -w "%{http_code}" http://localhost:9086/probe) -eq 200 ]; do echo waiting for packet-io-engine ready; sleep 2; done
/opt/tsg/mrzcpd/bin/monit_stream --prometheus-client
image: "registry.gdnt-cloud.website/tsg-packet-io-engine:{{ .Chart.AppVersion }}"
imagePullPolicy: Never
@@ -270,7 +270,7 @@ spec:
- "bash"
- "-ec"
- |
while ! nc -z localhost 9086; do sleep 1; done;
until [ $(curl -s -o /dev/null -w "%{http_code}" http://localhost:9086/probe) -eq 200 ]; do echo waiting for packet-io-engine ready; sleep 2; done
/opt/tsg/mrzcpd/bin/monit_obp --prometheus-client
image: "registry.gdnt-cloud.website/tsg-packet-io-engine:{{ .Chart.AppVersion }}"
imagePullPolicy: Never