Skip to content

Commit d74ba74

Browse files
authored
Merge pull request #5 from DO-Solutions/lb-updates
switch to curl
2 parents c5f451c + 5de41f3 commit d74ba74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

helm/templates/loadgenerator.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ spec:
7474
RETRY_INTERVAL=10
7575
for i in $(seq 1 $MAX_RETRIES); do
7676
echo "Attempt $i: Pinging frontend: ${FRONTEND_ADDR}..."
77-
STATUSCODE=$(wget --server-response http://${FRONTEND_ADDR} 2>&1 | awk '/^ HTTP/{code=$2} END{print code}')
77+
STATUSCODE=$(curl -s -L -o /dev/null -w "%{http_code}" http://${FRONTEND_ADDR})
7878
if [ $STATUSCODE -eq 200 ]; then
7979
echo "Frontend is reachable."
8080
exit 0
@@ -92,7 +92,7 @@ spec:
9292
- ALL
9393
privileged: false
9494
readOnlyRootFilesystem: true
95-
image: busybox:latest@sha256:37f7b378a29ceb4c551b1b5582e27747b855bbfaa73fa11914fe0df028dc581f
95+
image: alpine/curl
9696
env:
9797
- name: FRONTEND_ADDR
9898
value: "{{ default .Values.frontend.name .Values.frontend.fqdn }}"

0 commit comments

Comments
 (0)