-
Notifications
You must be signed in to change notification settings - Fork 0
/
start-kube-cluster.yaml
37 lines (29 loc) · 1.08 KB
/
start-kube-cluster.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
- name: start/restart basic service docker, flanneld, etcd
hosts: masters:workers
become: true
tasks:
- name: start/restart etcd service
systemd: name=etcd state=restarted daemon_reload=yes
- name: start/restart flanneld service
systemd: name=flanneld state=restarted daemon_reload=yes
- name: start/restart docker service
systemd: name=docker state=restarted daemon_reload=yes
- name: start/restart master
hosts: masters
become: true
tasks:
- name: start/restart kube-api-server service
systemd: name=kube-api-server state=restarted daemon_reload=yes
- name: start/restart kube-controller-manager service
systemd: name=kube-controller-manager state=restarted daemon_reload=yes
- name: start/restart kube-scheduler service
systemd: name=kube-scheduler state=restarted daemon_reload=yes
- name: start/restart workers
hosts: workers
become: true
tasks:
- name: start/restart kubelet
systemd: name=kubelet state=restarted daemon_reload=yes
- name: start/restart kube-proxy
systemd: name=kube-proxy state=restarted daemon_reload=yes