kubespray/roles/network_plugin/handlers/main.yml

37 lines
652 B
YAML
Raw Normal View History

2015-10-04 04:19:50 +08:00
---
2016-01-04 21:22:18 +08:00
- name: restart systemd-calico-node
command: /bin/true
notify:
- reload systemd
- restart calico-node
2016-01-09 17:45:50 +08:00
- name: restart systemd-docker
command: /bin/true
2015-10-04 04:19:50 +08:00
notify:
- reload systemd
2016-01-09 17:45:50 +08:00
- restart docker
- restart kubelet
2015-10-04 04:19:50 +08:00
2016-01-09 17:45:50 +08:00
- name: delete default docker bridge
2015-10-04 04:19:50 +08:00
command: ip link delete docker0
ignore_errors: yes
2016-01-09 17:45:50 +08:00
notify: restart docker
2015-10-04 04:19:50 +08:00
2016-01-09 17:45:50 +08:00
- name : reload systemd
shell: systemctl daemon-reload
- name: restart calico-node
service:
name: calico-node
state: restarted
- name: restart docker
service:
name: docker
state: restarted
- name: restart kubelet
service:
name: kubelet
state: restarted