Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 667 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 667 Bytes

Hetzner Keepalived

Docker image running keepalived and Hetzner notify script to assign a floating ip to a node with automatic failover.

Kubernetes deployment

Create namespace

kubectl create namespace keepalived

Create a configmap, for example:

cat <<EOF | kubectl create -n keepalived -f -
apiVersion: v1
kind: ConfigMap
metadata:
  name: keepalived
data:
  iface: ens10
  vips: 192.168.11.12/32 dev eth0
EOF

Create a secret with Hetzner API token

kubectl create secret generic hetzner -n keepalived --from-literal=token=YOUR_TOKEN

Install hetzner-keepalived

kubectl apply -f k8s/hetzner-keepalived.yaml