From cea5f8cc278f9ebe44c808c8698589276dc73826 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Wed, 1 Nov 2023 12:29:17 -0400 Subject: [PATCH] test(smoketest): update minio healthcheck to not require 'curl' in container --- smoketest/compose/s3-minio.yml | 2 +- smoketest/k8s/s3-deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/smoketest/compose/s3-minio.yml b/smoketest/compose/s3-minio.yml index 99058dc02..4d76842fb 100644 --- a/smoketest/compose/s3-minio.yml +++ b/smoketest/compose/s3-minio.yml @@ -29,7 +29,7 @@ services: kompose.service.expose: "minio" restart: always healthcheck: - test: curl --fail http://localhost:9001 || exit 1 + test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9001' || exit 1 interval: 10s retries: 3 start_period: 10s diff --git a/smoketest/k8s/s3-deployment.yaml b/smoketest/k8s/s3-deployment.yaml index 17d74e8c5..5ab1ad7ae 100644 --- a/smoketest/k8s/s3-deployment.yaml +++ b/smoketest/k8s/s3-deployment.yaml @@ -41,7 +41,7 @@ spec: livenessProbe: exec: command: - - curl --fail http://localhost:9001 || exit 1 + - timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9001' || exit 1 failureThreshold: 3 initialDelaySeconds: 10 periodSeconds: 10