Sign inSign up

zsoltm/keepalived

By zsoltm

•Updated over 10 years ago

KeepaliveD on Alpine Linux (compact, only 9MB the whole image) works on CoreOS

Image
1

4.4K

zsoltm/keepalived repository overview

⁠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.

Tag summary

Content type

Image

Digest

Size

3.6 MB

Last updated

over 10 years ago

docker pull zsoltm/keepalived