bugfix:取消lb组变量设置

pull/243/merge
jmgao 2018-06-10 00:16:20 +08:00
parent 82badc4f2e
commit 9f172965ac
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# 区分多个instance的VRRP组播同网段不能重复取值在0-255之间
# 可以直接指定数字如ROUTER_ID=59
# 本项目取100~200间的随机数
ROUTER_ID: {{ 200 | random(100,1) }}
ROUTER_ID: "{{ 200 | random(100,1) }}"

View File

@ -20,9 +20,9 @@ listen kube-master
mode tcp
option tcplog
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
{% 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
{% endfor %}