diff --git a/templates/keepalived/0/README.md b/templates/keepalived/0/README.md index 9bf3c91..2064345 100755 --- a/templates/keepalived/0/README.md +++ b/templates/keepalived/0/README.md @@ -4,17 +4,18 @@ This catalog recipe enables unicast VRRP based failover for one or more floating ### Form Fields +* **Host Label Name** - Host label key name used to schedule keepalived master and backup instances. +* **Master Label** - The value of the keepalived host Label to signify the master instance. +* **Backup Label** - The value of the keepalived host Label to signify the backup instance. +* **Interface Name** - The host interface that keepalived will monitor and use for VRRP traffic. +* **Virtual Router ID** - A unique number from 0 to 255 that should identify the VRRP group. +* **Master IP** - The IP on the master host that the keepalived daemon should bind to. +* **Backup IP** - The IP on the backup host that the keepalived daemon should bind to. +* **Virtual IP** - Virtual IP to be created. Must be in ip notation: `/ dev ` -| Variable | Default | Description | -|:---------------------:|:-----------:|:--------------------------------------------------------------------------------------:| -| **Host Label Name** | `vrrp_role` | Host label key name used to schedule keepalived master and backup instances. | -| **Master Label** | `master` | The value of the keepalived host Label to signify the master instance. | -| **Backup Label** | `backup` | The value of the keepalived host Label to signify the backup instance. | -| **Interface Name** | `eth0` | The host interface that keepalived will monitor and use for VRRP traffic. | -| **Virtual Router ID** | `2` | A unique number from 0 to 255 that should identify the VRRP group. | -| **Master IP** | | The IP on the master host that the keepalived daemon should bind to. | -| **Backup IP** | | The IP on the backup host that the keepalived daemon should bind to. | -| **Virtual IP** | | Virtual IP to be created. Must be in ip notation: `/ dev ` | +### Requirements + +The host must have the sysctl setting `net.ipv4.ip_nonlocal_bind=1` configured. ### Usage diff --git a/templates/keepalived/0/docker-compose.yml b/templates/keepalived/0/docker-compose.yml index b7c44f5..0ed4174 100755 --- a/templates/keepalived/0/docker-compose.yml +++ b/templates/keepalived/0/docker-compose.yml @@ -17,8 +17,6 @@ services: KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\"" labels: io.rancher.scheduler.affinity:host_label: ${host_label}=${master_label} - sysctls: - - net.ipv4.ip_nonlocal_bind=1 keepalived-backup: restart: always @@ -37,5 +35,3 @@ services: KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\"" labels: io.rancher.scheduler.affinity:host_label: ${host_label}=${backup_label} - sysctls: - - net.ipv4.ip_nonlocal_bind=1