/keepalived-hcloud

Keepalived container with Hetzner-Cloud scripts

Primary LanguageShellMIT LicenseMIT

Keepalived for Kubernetes with Hetzner-Cloud scripts

Current Release Publish Docker image Docker Pulls Docker Image Size (latest by date) GitHub

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 Node
    • check-fip.sh: Checks if a Floating-IP is assigned to the current Node
    • check-http.sh: Simple HTTP-Check to validate if the upstream proxy is healthy
    • check-enabled.sh: Script which fails if ENABLED=0 is defined to manually put Keepalived in FAULT-mode.
  • Includes prometheus exporter (Port 9165)
  • Redirects script-outputs to stdout/stderr

Usage

  • 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: Set true to disable the exporter.
    • EXPORTER_LISTEN_ADDRESS=:9165: Listen address/port for prometheus exporter.