mixed up copied files
This commit is contained in:
parent
c09b9f62d7
commit
8459f2b064
@ -1,37 +0,0 @@
|
|||||||
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}
|
|
@ -1,40 +0,0 @@
|
|||||||
.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
|
|
@ -16,7 +16,7 @@ services:
|
|||||||
KEEPALIVED_TRACK_INTERFACE_1: eth0
|
KEEPALIVED_TRACK_INTERFACE_1: eth0
|
||||||
KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\""
|
KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\""
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: edge=master
|
io.rancher.scheduler.affinity:host_label: ${host_label}=${master_host_label}
|
||||||
|
|
||||||
keepalived-backup:
|
keepalived-backup:
|
||||||
restart: always
|
restart: always
|
||||||
@ -34,4 +34,4 @@ services:
|
|||||||
KEEPALIVED_TRACK_INTERFACE_1: eth0
|
KEEPALIVED_TRACK_INTERFACE_1: eth0
|
||||||
KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\""
|
KEEPALIVED_VIRTUAL_IPADDRESS_1: "\"${virtual_ip}\""
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: edge=backup
|
io.rancher.scheduler.affinity:host_label: ${host_label}=${backup_host_label}
|
||||||
|
@ -1,22 +1,40 @@
|
|||||||
.catalog:
|
.catalog:
|
||||||
name: "keepalived"
|
name: "keepalived"
|
||||||
version: v0.2.0
|
version: v1.0.0
|
||||||
description: "Autostart Keepalived (ONLY IF YOU KNOW WHAT YOU'RE DOING)"
|
description: "Autostart Keepalived (ONLY IF YOU KNOW WHAT YOU'RE DOING)"
|
||||||
minimum_rancher_version: v0.46.0
|
minimum_rancher_version: v0.46.0
|
||||||
uuid: keepalived:v0.2.0
|
uuid: keepalived:v1.0.0
|
||||||
questions:
|
questions:
|
||||||
- variable: virtual_ip
|
- variable: host_label
|
||||||
label: "Virtual IP"
|
label: "Keepalived Host Label"
|
||||||
description: "Virtual IP in ip command format"
|
description: "Host Label used to schedule keepalived master and backup instances"
|
||||||
type: "string"
|
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
|
required: true
|
||||||
- variable: master_ip
|
- variable: master_ip
|
||||||
description: "IP of master edge node"
|
description: "Host IP of master edge node"
|
||||||
label: "Master IP"
|
label: "Master IP"
|
||||||
type: "string"
|
type: "string"
|
||||||
required: true
|
required: true
|
||||||
- variable: backup_ip
|
- variable: backup_ip
|
||||||
description: "IP of backup edge node"
|
description: "Host IP of backup edge node"
|
||||||
label: "Backup IP"
|
label: "Backup IP"
|
||||||
type: "string"
|
type: "string"
|
||||||
required: true
|
required: true
|
||||||
|
- variable: virtual_ip
|
||||||
|
label: "Virtual IP"
|
||||||
|
description: "Virtual IP to be created."
|
||||||
|
type: "string"
|
||||||
|
required: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user