Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/psi-4ward/keepalived-hcloud
Keepalived container with Hetzner-Cloud scripts
https://github.com/psi-4ward/keepalived-hcloud
docker hcloud hetzner-cloud high-availability keepalived kubernetes prometheus-exporter
Last synced: 22 days ago
JSON representation
Keepalived container with Hetzner-Cloud scripts
- Host: GitHub
- URL: https://github.com/psi-4ward/keepalived-hcloud
- Owner: psi-4ward
- License: mit
- Created: 2021-12-23T16:38:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-04T13:28:57.000Z (almost 3 years ago)
- Last Synced: 2024-12-09T08:46:53.193Z (25 days ago)
- Topics: docker, hcloud, hetzner-cloud, high-availability, keepalived, kubernetes, prometheus-exporter
- Language: Shell
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Keepalived for Kubernetes with Hetzner-Cloud scripts
[![Current Release](https://img.shields.io/github/release/psi-4ward/keepalived-hcloud.svg)](https://github.com/psi-4ward/keepalived-hcloud/releases)
[![Publish Docker image](https://github.com/psi-4ward/keepalived-hcloud/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/psi-4ward/keepalived-hcloud/pkgs/container/keepalived-hcloud)
[![Docker Pulls](https://img.shields.io/docker/pulls/psitrax/keepalived-hcloud)](https://hub.docker.com/r/psitrax/keepalived-hcloud)
[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/psitrax/keepalived-hcloud)](https://hub.docker.com/r/psitrax/keepalived-hcloud/tags)
[![GitHub](https://img.shields.io/github/license/psi-4ward/keepalived-hcloud)](https://github.com/psi-4ward/keepalived-hcloud/blob/main/LICENSE)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](https://github.com/cafebazaar/keepalived-exporter) (Port 9165)
* Redirects script-outputs to stdout/stderr## Usage
* Create your [docs/keepalived.conf](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.