Docker image for keepalived to failover Floating-IPs (of Hetzner Cloud).
- Includes helper scripts to check and handle Floating-IPs
assign-floating-ip.sh
: Assigns a Floating-IP to the current Nodecheck-fip.sh
: Checks if a Floating-IP is assigned to the current Nodecheck-http.sh
: Simple HTTP-Check to validate if the upstream proxy is healthycheck-enabled.sh
: Script which fails ifENABLED=0
is defined to manually put Keepalived in FAULT-mode.
- Includes prometheus exporter (Port 9165)
- Redirects script-outputs to stdout/stderr
-
Create your docs/keepalived.conf scripts and mount it to
/etc/keepalived
-
Run the Container/Pod with
HCLOUD_TOKEN
environment variable or (better) put the token in/etc/keepalived/HCLOUD_TOKEN
secrets file. -
Optional: Configure keepalived-exporter using env-vars
DISABLE_EXPORTER=false
: Settrue
to disable the exporter.EXPORTER_LISTEN_ADDRESS=:9165
: Listen address/port for prometheus exporter.