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
|
2017-05-29 10:43:26 +00:00
|
|
|
ignore_errors: "{{ ansible_check_mode }}"
|
2016-08-01 13:12:23 +00:00
|
|
|
|
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
|
2017-05-29 10:43:26 +00:00
|
|
|
ignore_errors: "{{ ansible_check_mode }}"
|
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-06-06 16:36:04 +00:00
|
|
|
url: http://localhost:{{ kube_apiserver_insecure_port }}/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
|
2017-05-29 10:43:26 +00:00
|
|
|
ignore_errors: "{{ ansible_check_mode }}"
|