diff --git a/charts/fluentd/templates/tests/test-connection.yaml b/charts/fluentd/templates/tests/test-connection.yaml index 66e7ede2..2b07ec4f 100644 --- a/charts/fluentd/templates/tests/test-connection.yaml +++ b/charts/fluentd/templates/tests/test-connection.yaml @@ -17,7 +17,13 @@ spec: containers: - name: wget image: busybox - command: ['wget'] - args: ['{{ include "fluentd.fullname" . }}:24231/metrics'] + command: + - sh + - -c + - | + set -e + # Give fluentd some time to start up + while :; do nc -vz {{ include "fluentd.fullname" . }}:24231 && break; sleep 1; done + wget '{{ include "fluentd.fullname" . }}:24231/metrics' restartPolicy: Never {{ end }} \ No newline at end of file