Skip to content

Commit

Permalink
fix: restart ex-lb when master nodes change
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed Apr 12, 2021
1 parent 7864030 commit 8771b14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ezctl
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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"
}


Expand Down

0 comments on commit 8771b14

Please sign in to comment.