c12s-kubespray/roles/kubernetes/master/handlers/main.yml

57 lines
1.1 KiB
YAML
Raw Normal View History

2015-10-03 20:19:50 +00:00
---
- name: restart daemons
command: /bin/true
notify:
- reload systemd
- restart reloaded-scheduler
- restart reloaded-controller-manager
- restart reloaded-apiserver
- restart reloaded-proxy
2015-10-03 20:19:50 +00:00
- name: reload systemd
command: systemctl daemon-reload
- name: restart apiserver
command: /bin/true
notify:
- reload systemd
- restart reloaded-apiserver
- name: restart reloaded-apiserver
2015-10-03 20:19:50 +00:00
service:
name: kube-apiserver
state: restarted
- name: restart controller-manager
command: /bin/true
notify:
- reload systemd
- restart reloaded-controller-manager
- name: restart reloaded-controller-manager
2015-10-03 20:19:50 +00:00
service:
name: kube-controller-manager
state: restarted
- name: restart scheduler
command: /bin/true
notify:
- reload systemd
- restart reloaded-scheduler
- name: restart reloaded-scheduler
2015-10-03 20:19:50 +00:00
service:
name: kube-scheduler
state: restarted
- name: restart proxy
command: /bin/true
notify:
- reload systemd
- restart reloaded-proxy
- name: restart reloaded-proxy
2015-10-03 20:19:50 +00:00
service:
name: kube-proxy
state: restarted