poststartup script moved to extra container, non init

This commit is contained in:
Leo Sok 2025-07-24 13:59:09 +03:00
parent d7667e7c11
commit 748a9b69b5

View File

@ -174,12 +174,13 @@ extraVolumeMounts:
extraContainers:
- name: elasticsearch-template-loader
image: docker.io/library/elasticsearch:8.5.1
image: alpine:3.20
command:
- /bin/bash
- -c
- |
set -ex
apk add --no-cache bash curl coreutils
echo "[template-loader] Waiting for Elasticsearch at $ES_URL..."
for i in $(seq 1 ${MAX_RETRIES:-30}); do
if curl -s "$ES_URL" >/dev/null; then