Files
podinfo/deploy/bases/frontend/scripts/warm-cache-init.sh
T
Stefan Prodan 72c51ed43b deploy: Add warm-cache CronJob
- Introduced a new `warm-cache` CronJob to periodically preload the cache.
- Added supporting scripts (`warm-cache.sh`, `warm-cache-init.sh`) to manage the cache warm-up process.
- Configured `ServiceAccount` for the frontend deployment to enhance security.
- Adjusted HPA minimum replicas from 1 to 2 for better availability.
- Set frontend deployment to use debug log level.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2026-06-18 11:44:39 +03:00

14 lines
471 B
Bash
Executable File

#!/bin/sh
set -e
# Init step for the warm-cache job.
# Calls the frontend in verbose mode so the full connection, request and
# response debug data (DNS, TCP, headers, timings) is dumped to the logs.
FRONTEND="${FRONTEND_URL:-http://frontend}"
echo "Dumping debug data for ${FRONTEND}/api/info"
# -v writes the verbose debug data to stderr, redirect it to stdout so it
# lands in the container logs together with the response body.
curl -v "${FRONTEND}/api/info" 2>&1