Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
[elasticsearch] use bash for readiness script (elastic#1458)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jmlrt committed Dec 9, 2021
1 parent a8d5ee2 commit 8d7551d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elasticsearch/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ spec:
readinessProbe:
exec:
command:
- sh
- bash
- -c
- |
#!/usr/bin/env bash -e
Expand Down

0 comments on commit 8d7551d

Please sign in to comment.