mirror of https://github.com/easzlab/kubeasz.git
fix: restart ex-lb when master nodes change
parent
7864030360
commit
8771b14883
6
ezctl
6
ezctl
|
@ -329,6 +329,9 @@ function add-master() {
|
|||
|
||||
logger info "reconfigure and restart 'kube-lb' service"
|
||||
ansible-playbook -i "$BASE/clusters/$1/hosts" "$BASE/playbooks/90.setup.yml" -t restart_kube-lb -e "@clusters/$1/config.yml"
|
||||
|
||||
logger info "reconfigure and restart 'ex-lb' service"
|
||||
ansible-playbook -i "$BASE/clusters/$1/hosts" "$BASE/playbooks/10.ex-lb.yml" -t restart_lb -e "@clusters/$1/config.yml"
|
||||
}
|
||||
|
||||
function add-etcd() {
|
||||
|
@ -395,6 +398,9 @@ function del-master() {
|
|||
|
||||
logger info "reconfigure and restart 'kube-lb' service"
|
||||
ansible-playbook -i "$BASE/clusters/$1/hosts" "$BASE/playbooks/90.setup.yml" -t restart_kube-lb -e "@clusters/$1/config.yml"
|
||||
|
||||
logger info "reconfigure and restart 'ex-lb' service"
|
||||
ansible-playbook -i "$BASE/clusters/$1/hosts" "$BASE/playbooks/10.ex-lb.yml" -t restart_lb -e "@clusters/$1/config.yml"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue