forked from KubeOperator/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path91-add-worker.yml
44 lines (37 loc) · 916 Bytes
/
91-add-worker.yml
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
38
39
40
41
42
43
44
- hosts: new-worker
roles:
- prepare/repository
- prepare/base
- prepare/nameserver
- chrony
- hosts: new-worker
roles:
- { role: prepare/docker, when: "container_runtime == 'docker'" }
- { role: prepare/containerd, when: "container_runtime == 'containerd'" }
- { role: plugins/gpu/gpu-driver, when: "container_runtime == 'docker' and support_gpu == 'enable'" }
- { role: plugins/gpu/gpu-docker, when: "container_runtime == 'docker' and support_gpu == 'enable'" }
- hosts: new-worker
gather_facts: false
roles:
- prepare/kubernetes
- hosts: new-worker
roles:
- load-balancer
- hosts:
- kube-master
- kube-worker
- new-worker
roles:
- prepare/kube-certificates
- hosts: new-worker
gather_facts: false
roles:
- kube-worker
- hosts: new-worker
gather_facts: false
roles:
- post
- hosts: kube-master[0]
gather_facts: false
roles:
- plugins/network-plugins