2015-10-04 04:19:50 +08:00
|
|
|
---
|
2016-08-01 21:12:23 +08:00
|
|
|
- name: Master | restart kubelet
|
|
|
|
command: /bin/true
|
|
|
|
notify:
|
2016-08-25 17:16:14 +08:00
|
|
|
- Master | reload systemd
|
|
|
|
- Master | reload kubelet
|
2016-09-27 17:54:12 +08:00
|
|
|
- Master | wait for master static pods
|
2016-08-01 21:12:23 +08:00
|
|
|
|
2016-09-27 17:54:12 +08:00
|
|
|
- name: Master | wait for master static pods
|
2016-08-01 21:12:23 +08:00
|
|
|
command: /bin/true
|
|
|
|
notify:
|
2016-09-27 17:54:12 +08:00
|
|
|
- Master | wait for the apiserver to be running
|
|
|
|
- Master | wait for kube-scheduler
|
|
|
|
- Master | wait for kube-controller-manager
|
2016-08-01 21:12:23 +08:00
|
|
|
|
|
|
|
- name: Master | reload systemd
|
|
|
|
command: systemctl daemon-reload
|
|
|
|
|
|
|
|
- name: Master | reload kubelet
|
|
|
|
service:
|
|
|
|
name: kubelet
|
|
|
|
state: restarted
|
|
|
|
|
2016-09-27 17:54:12 +08:00
|
|
|
- name: Master | wait for kube-scheduler
|
2017-02-18 05:22:34 +08:00
|
|
|
uri:
|
|
|
|
url: http://localhost:10251/healthz
|
2016-08-01 21:12:23 +08:00
|
|
|
register: scheduler_result
|
|
|
|
until: scheduler_result.status == 200
|
2017-03-27 19:44:21 +08:00
|
|
|
retries: 60
|
2016-08-01 21:12:23 +08:00
|
|
|
delay: 5
|
|
|
|
|
2016-09-27 17:54:12 +08:00
|
|
|
- name: Master | wait for kube-controller-manager
|
2017-02-18 05:22:34 +08:00
|
|
|
uri:
|
|
|
|
url: http://localhost:10252/healthz
|
2016-08-01 21:12:23 +08:00
|
|
|
register: controller_manager_result
|
|
|
|
until: controller_manager_result.status == 200
|
|
|
|
retries: 15
|
|
|
|
delay: 5
|
2016-09-27 17:54:12 +08:00
|
|
|
|
|
|
|
- name: Master | wait for the apiserver to be running
|
2017-02-18 05:22:34 +08:00
|
|
|
uri:
|
2017-09-10 04:41:48 +08:00
|
|
|
url: "{{ kube_apiserver_insecure_endpoint }}/healthz"
|
2016-09-27 17:54:12 +08:00
|
|
|
register: result
|
|
|
|
until: result.status == 200
|
2017-03-30 21:08:13 +08:00
|
|
|
retries: 20
|
2016-09-27 17:54:12 +08:00
|
|
|
delay: 6
|
2017-09-14 02:00:51 +08:00
|
|
|
|
|
|
|
- name: Master | set secret_changed
|
|
|
|
set_fact:
|
|
|
|
secret_changed: true
|