update readme, remove sysctl settings from compose
This commit is contained in:
parent
9dfcd9be5b
commit
21e91402d7
@ -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
|
||||||
|
|
||||||
|
@ -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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user