initial copy from internal repo

This commit is contained in:
Jeffrey Sica
2017-07-21 14:06:22 -04:00
parent efe9eb1f83
commit c09b9f62d7
7 changed files with 448 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
version: '2'
services:
keepalived-master:
restart: always
image: arcts/keepalived
network_mode: host
cap_add:
- NET_ADMIN
environment:
KEEPALIVED_AUTOCONF: true
KEEPALIVED_STATE: MASTER
KEEPALIVED_INTERFACE: eth0
KEEPALIVED_VIRTUAL_ROUTER_ID: 2
KEEPALIVED_UNICAST_SRC_IP: ${master_ip}
KEEPALIVED_UNICAST_PEER_0: ${backup_ip}
KEEPALIVED_TRACK_INTERFACE_1: eth0
KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\""
labels:
io.rancher.scheduler.affinity:host_label: ${host_label}=${master_host_label}
keepalived-backup:
restart: always
image: arcts/keepalived
network_mode: host
cap_add:
- NET_ADMIN
environment:
KEEPALIVED_AUTOCONF: true
KEEPALIVED_STATE: BACKUP
KEEPALIVED_INTERFACE: eth0
KEEPALIVED_VIRTUAL_ROUTER_ID: 2
KEEPALIVED_UNICAST_SRC_IP: ${backup_ip}
KEEPALIVED_UNICAST_PEER_0: ${master_ip}
KEEPALIVED_TRACK_INTERFACE_1: eth0
KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\""
labels:
io.rancher.scheduler.affinity:host_label: ${host_label}=${backup_host_label}
+40
View File
@@ -0,0 +1,40 @@
.catalog:
name: "keepalived"
version: v1.0.0
description: "Autostart Keepalived (ONLY IF YOU KNOW WHAT YOU'RE DOING)"
minimum_rancher_version: v0.46.0
uuid: keepalived:v1.0.0
questions:
- variable: host_label
label: "Keepalived Host Label"
description: "Host Label used to schedule keepalived master and backup instances"
type: "string"
default: "edge"
required: true
- variable: master_host_label
label: "Master Host Label"
description: "The value of the Keepalived Host Label to signifify the master instance"
type: "string"
default: "MASTER"
required: true
- variable: backup_host_label
label: "Backup Host Label"
description: "The value of the Keepalived Host Label to signifify the backup instance"
type: "string"
default: "BACKUP"
required: true
- variable: master_ip
description: "Host IP of master edge node"
label: "Master IP"
type: "string"
required: true
- variable: backup_ip
description: "Host IP of backup edge node"
label: "Backup IP"
type: "string"
required: true
- variable: virtual_ip
label: "Virtual IP"
description: "Virtual IP to be created."
type: "string"
required: true
+37
View File
@@ -0,0 +1,37 @@
version: '2'
services:
keepalived-master:
restart: always
image: arcts/keepalived
network_mode: host
cap_add:
- NET_ADMIN
environment:
KEEPALIVED_AUTOCONF: true
KEEPALIVED_STATE: MASTER
KEEPALIVED_INTERFACE: eth0
KEEPALIVED_VIRTUAL_ROUTER_ID: 2
KEEPALIVED_UNICAST_SRC_IP: ${master_ip}
KEEPALIVED_UNICAST_PEER_0: ${backup_ip}
KEEPALIVED_TRACK_INTERFACE_1: eth0
KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\""
labels:
io.rancher.scheduler.affinity:host_label: edge=master
keepalived-backup:
restart: always
image: arcts/keepalived
network_mode: host
cap_add:
- NET_ADMIN
environment:
KEEPALIVED_AUTOCONF: true
KEEPALIVED_STATE: BACKUP
KEEPALIVED_INTERFACE: eth0
KEEPALIVED_VIRTUAL_ROUTER_ID: 2
KEEPALIVED_UNICAST_SRC_IP: ${backup_ip}
KEEPALIVED_UNICAST_PEER_0: ${master_ip}
KEEPALIVED_TRACK_INTERFACE_1: eth0
KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\""
labels:
io.rancher.scheduler.affinity:host_label: edge=backup
+22
View File
@@ -0,0 +1,22 @@
.catalog:
name: "keepalived"
version: v0.2.0
description: "Autostart Keepalived (ONLY IF YOU KNOW WHAT YOU'RE DOING)"
minimum_rancher_version: v0.46.0
uuid: keepalived:v0.2.0
questions:
- variable: virtual_ip
label: "Virtual IP"
description: "Virtual IP in ip command format"
type: "string"
required: true
- variable: master_ip
description: "IP of master edge node"
label: "Master IP"
type: "string"
required: true
- variable: backup_ip
description: "IP of backup edge node"
label: "Backup IP"
type: "string"
required: true