mirror of https://github.com/easzlab/kubeasz.git
bugfix:取消lb组变量设置
parent
82badc4f2e
commit
9f172965ac
|
@ -1,4 +1,4 @@
|
||||||
# 区分多个instance的VRRP组播,同网段不能重复,取值在0-255之间
|
# 区分多个instance的VRRP组播,同网段不能重复,取值在0-255之间
|
||||||
# 可以直接指定数字,如ROUTER_ID=59
|
# 可以直接指定数字,如ROUTER_ID=59
|
||||||
# 本项目取100~200间的随机数
|
# 本项目取100~200间的随机数
|
||||||
ROUTER_ID: {{ 200 | random(100,1) }}
|
ROUTER_ID: "{{ 200 | random(100,1) }}"
|
||||||
|
|
|
@ -20,9 +20,9 @@ listen kube-master
|
||||||
mode tcp
|
mode tcp
|
||||||
option tcplog
|
option tcplog
|
||||||
balance source
|
balance source
|
||||||
{% for host in groups.kube-master %}
|
{% for host in groups['kube-master'] %}
|
||||||
server {{host.inventory_hostname}} {{host.inventory_hostname}}:6443 check inter 2000 fall 2 rise 2 weight 1
|
server {{host.inventory_hostname}} {{host.inventory_hostname}}:6443 check inter 2000 fall 2 rise 2 weight 1
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for host in groups.new-master %}
|
{% for host in groups['new-master'] %}
|
||||||
server {{host.inventory_hostname}} {{host.inventory_hostname}}:6443 check inter 2000 fall 2 rise 2 weight 1
|
server {{host.inventory_hostname}} {{host.inventory_hostname}}:6443 check inter 2000 fall 2 rise 2 weight 1
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue