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