From bb6d6cac02950b319b8772f22c9293b643f52cf0 Mon Sep 17 00:00:00 2001 From: jmlrt <8582351+jmlrt@users.noreply.github.com> Date: Thu, 9 Dec 2021 13:05:06 +0100 Subject: [PATCH] [elasticsearch] use bash for readiness script This commit set the readiness probe to use bash instead of sh. This is required for Elasticsearch > 7.16.0 because the Docker image is now based on Ubuntu instead of CentOS 8, and sh on Ubuntu isn't compatible with the `if [[ ... -eq .... ]]` statements used in the readiness probe. --- elasticsearch/templates/statefulset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/templates/statefulset.yaml b/elasticsearch/templates/statefulset.yaml index bad72ee14..6d1487281 100644 --- a/elasticsearch/templates/statefulset.yaml +++ b/elasticsearch/templates/statefulset.yaml @@ -227,7 +227,7 @@ spec: readinessProbe: exec: command: - - sh + - bash - -c - | #!/usr/bin/env bash -e