The gateway runs as a systemd service, so it never saw the pod's POD_NAMESPACE or IDLE_TIMEOUT: a gateway in qa read app ConfigMaps from default and started apps without volumes, database env or their idle timeout. The unit now passes those variables on, and the gateway falls back to PID 1's environment and the service account namespace. The effective default idle timeout stays 10s. A one-replica gateway gets maxUnavailable: 1 instead of a PDB that blocks node drains. status, logs, list-apps and delete-app accept -n/--namespace (logs keeps a numeric -n as the line count). --expand is documented as writing YAML alongside a real apply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016uKdmp7tLySXvQXALz2x9V
18 lines
582 B
Desktop File
18 lines
582 B
Desktop File
[Unit]
|
|
Description=Zero-Scale Gateway Proxy
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStartPre=/bin/sh -c "echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6 2>/dev/null || true"
|
|
# Hand the pod's env (set in the Deployment) to the gateway; it also falls back to
|
|
# PID 1's environment and the service account namespace when these are missing.
|
|
PassEnvironment=POD_NAME POD_NAMESPACE IDLE_TIMEOUT KUBE_DASHBOARD_URL
|
|
ExecStart=/usr/local/bin/gateway -check-period=2s
|
|
Restart=always
|
|
StandardOutput=journal+console
|
|
StandardError=journal+console
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|