mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-08-21 21:26:30 +00:00
- 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>
14 lines
471 B
Bash
Executable File
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
|