Skip to content

chris2k20/keepalived-hcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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) invim 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

About

keepalived on hetzner cloud (hcloud)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages