Public Repository

Last pushed: 2 years ago
Short Description
KeepaliveD on Alpine Linux (compact, only 9MB the whole image) works on CoreOS
Full Description

KeepaliveD

This is a minimal keepalived image, that does nothing but sets up a virtual IP address (VIP) on the host. Need to be started as --net=host and --privileged to be able to manipulate host's network IF. Uses password auth to keep it simple.

Tags

  • latest / 1.2.19

Example

Configuration should be passed as environment variables

  • INTERFACE network interface to set up VIP as an alias
  • STATE initial state: MASTER|SLAVE
  • PASS peer authentication password
  • VIP virtual IP address
  • PRIORITY self explanatory

Example:

docker run --privileged --net=host\
  -v /lib/modules:/lib/modules\
  -e INTERFACE='eth0'\
  -e STATE='MASTER'\
  -e PASS='example'\
  -e VIP='172.27.14.14'\
  -e PRIORITY='100'\
  zsoltm/keepalived

Should spin up a container which sets up virtual 172.27.14.14 as an alias on eth0. The lib/modules bindig is needed to let keepalived load ipvs kernel module on demand.

Docker Pull Command
Owner
zsoltm