mirror of https://github.com/easzlab/kubeasz.git
fix 24.restore.yml
parent
f2924ad39b
commit
d19a7f27d2
|
@ -15,9 +15,9 @@
|
|||
- hosts: kube-master
|
||||
tasks:
|
||||
- name: 重启 kubernetes 服务
|
||||
shell: "systemctl restart kube-apiserver && systemctl restart kubelet &&\
|
||||
systemctl restart kube-controller-manager && systemctl restart kube-scheduler &&\
|
||||
systemctl restart kube-proxy"
|
||||
shell: "systemctl restart kube-apiserver && \
|
||||
systemctl restart kube-controller-manager && \
|
||||
systemctl restart kube-scheduler"
|
||||
|
||||
- name: "Wait services start"
|
||||
wait_for: timeout=5
|
||||
|
@ -31,6 +31,8 @@
|
|||
|
||||
# restart work node kubernetes service
|
||||
- hosts:
|
||||
- kube-master
|
||||
- kube-node
|
||||
tasks:
|
||||
- name: 重启 kubernetes 服务
|
||||
shell: "systemctl restart kubelet && systemctl restart kube-proxy"
|
||||
|
@ -43,4 +45,4 @@
|
|||
register: kubelet_status
|
||||
until: '"running" in kubelet_status.stdout'
|
||||
retries: 8
|
||||
delay: 2
|
||||
delay: 2
|
||||
|
|
Loading…
Reference in New Issue