Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
/ hiper Public archive

Automatically update Hetzner Cloud Floating IP server assignments in a Docker Swarm

License

Notifications You must be signed in to change notification settings

jonasgeiler/hiper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hiper

Automatically updates Hetzner Cloud Floating IP server assignments in a Docker Swarm.
This project was inspired by the blog post "Implementation of a Cloud HA infrastructure with Keepalived" written by Markus (@BackInBash) and some parts of the code were taken from hcloud-ip.

How it works

hiper relies on the automatic container rescheduling performed by Docker Swarm. Whenever a host goes down and this container happens to run on it, it will be started on another node, and hiper will then update the floating IP assigment.
I got the idea from this serverfault answer, but instead of DynDNS, I rely on floating IPs.

Usage

Note: The image is built using the very minimal scratch base image, so it only contains a single binary.

docker run -t --name hiper ghcr.io/zackplan/hiper

An example using docker compose can be found here.