poststartup script moved to extra container, non init
This commit is contained in:
parent
5628d7f814
commit
85e4873e70
@ -174,13 +174,12 @@ extraVolumeMounts:
|
|||||||
|
|
||||||
extraContainers:
|
extraContainers:
|
||||||
- name: elasticsearch-template-loader
|
- name: elasticsearch-template-loader
|
||||||
image: alpine:3.20
|
image: docker.io/library/elasticsearch:8.5.1
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
set -ex
|
set -ex
|
||||||
apk add --no-cache bash curl coreutils
|
|
||||||
echo "[template-loader] Waiting for Elasticsearch at $ES_URL..."
|
echo "[template-loader] Waiting for Elasticsearch at $ES_URL..."
|
||||||
for i in $(seq 1 ${MAX_RETRIES:-30}); do
|
for i in $(seq 1 ${MAX_RETRIES:-30}); do
|
||||||
if curl -s "$ES_URL" >/dev/null; then
|
if curl -s "$ES_URL" >/dev/null; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user