https://github.com/chris2k20/keepalived-hcloud
keepalived on hetzner cloud (hcloud)
https://github.com/chris2k20/keepalived-hcloud
Last synced: about 1 month ago
JSON representation
keepalived on hetzner cloud (hcloud)
- Host: GitHub
- URL: https://github.com/chris2k20/keepalived-hcloud
- Owner: chris2k20
- Created: 2019-05-19T16:03:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-13T07:27:43.000Z (about 5 years ago)
- Last Synced: 2025-04-01T15:13:31.850Z (about 2 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 5
- Watchers: 0
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Configuration for running keepalived on Hetzner Cloud with Floading IP on two Servers with heartbeat failover.
# HowTo Use it
- Clone this repo to /etc/keepalived (on both systems): `git clone https://github.com/chris2k20/keepalived-hcloud/ /etc/keepalived/`
- Install keepalived (on both systems) `sudo apt install keepalived`
- Install python3 (on both systems) `sudo apt install python3`
- Create API Token and Failover IP @hcloud -> https://console.hetzner.cloud/
- Configure IP Addresses (ips array), Hetzner API Token (api-token) and server-id (on both systems differnt values) in`vim hcloud-failover/config.json`
- Configure IP Addresses on master `vim keepalived.conf` and on backup-node `vim keepalived-backup.conf`
- Save the keepalived-backup.conf (on backup node) to `/etc/keepalived/keepalived.conf`
- start/enable keepalived (on both systems) `sudo systemctl enable keepalived ; sudo systemctl start keepalived`