update readme, remove sysctl settings from compose

This commit is contained in:
Bob Killen 2017-08-01 09:38:06 -04:00
parent 9dfcd9be5b
commit 21e91402d7
No known key found for this signature in database
GPG Key ID: 03FB8A8615239E6D
2 changed files with 11 additions and 14 deletions

View File

@ -4,17 +4,18 @@ This catalog recipe enables unicast VRRP based failover for one or more floating
### Form Fields ### 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: `<ipaddress>/<mask> dev <interface>`
| Variable | Default | Description | ### Requirements
|:---------------------:|:-----------:|:--------------------------------------------------------------------------------------:|
| **Host Label Name** | `vrrp_role` | Host label key name used to schedule keepalived master and backup instances. | The host must have the sysctl setting `net.ipv4.ip_nonlocal_bind=1` configured.
| **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: `<ipaddress>/<mask> dev <interface>` |
### Usage ### Usage

View File

@ -17,8 +17,6 @@ services:
KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\"" KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\""
labels: labels:
io.rancher.scheduler.affinity:host_label: ${host_label}=${master_label} io.rancher.scheduler.affinity:host_label: ${host_label}=${master_label}
sysctls:
- net.ipv4.ip_nonlocal_bind=1
keepalived-backup: keepalived-backup:
restart: always restart: always
@ -37,5 +35,3 @@ services:
KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\"" KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\""
labels: labels:
io.rancher.scheduler.affinity:host_label: ${host_label}=${backup_label} io.rancher.scheduler.affinity:host_label: ${host_label}=${backup_label}
sysctls:
- net.ipv4.ip_nonlocal_bind=1