We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5f451c + 5de41f3 commit d74ba74Copy full SHA for d74ba74
1 file changed
helm/templates/loadgenerator.yaml
@@ -74,7 +74,7 @@ spec:
74
RETRY_INTERVAL=10
75
for i in $(seq 1 $MAX_RETRIES); do
76
echo "Attempt $i: Pinging frontend: ${FRONTEND_ADDR}..."
77
- STATUSCODE=$(wget --server-response http://${FRONTEND_ADDR} 2>&1 | awk '/^ HTTP/{code=$2} END{print code}')
+ STATUSCODE=$(curl -s -L -o /dev/null -w "%{http_code}" http://${FRONTEND_ADDR})
78
if [ $STATUSCODE -eq 200 ]; then
79
echo "Frontend is reachable."
80
exit 0
@@ -92,7 +92,7 @@ spec:
92
- ALL
93
privileged: false
94
readOnlyRootFilesystem: true
95
- image: busybox:latest@sha256:37f7b378a29ceb4c551b1b5582e27747b855bbfaa73fa11914fe0df028dc581f
+ image: alpine/curl
96
env:
97
- name: FRONTEND_ADDR
98
value: "{{ default .Values.frontend.name .Values.frontend.fqdn }}"
0 commit comments