forked from kairen/kube-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cluster.yml
43 lines (36 loc) · 1.17 KB
/
cluster.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
---
- hosts: masters
become: yes
roles:
- { role: gen-certs, tags: gen-certs }
- hosts: etcds
become: yes
roles:
- { role: etcd, tags: etcd }
- hosts: kube-cluster
become: yes
roles:
- { role: cri/docker, when: cri_plugin == 'docker', tags: docker }
- { role: cri/containerd, when: cri_plugin == 'containerd', tags: containerd }
- hosts: masters
become: yes
roles:
- { role: kubernetes/gen-configs, node_role: "master", tags: master-gen-config }
- { role: kubernetes/ha, tags: ha }
- { role: kubernetes/master, tags: master }
- hosts: nodes
become: yes
roles:
- { role: kubernetes/gen-configs, node_role: "node", tags: master-gen-config }
- { role: kubernetes/node, tags: node }
- hosts: masters
become: yes
roles:
- { role: kubernetes/approve-certs, tags: approve-certs }
- { role: kubernetes/addon, when: kube_proxy, addon: "{{ addons.proxy }}", tags: kube-proxy }
- { role: kubernetes/addon, when: kube_dns, addon: "{{ addons.dns }}", tags: kube-dns }
- { role: cni, tags: cni }
- hosts: kube-cluster
become: yes
roles:
- { role: cri/checker, when: cri_plugin == 'containerd', tags: checker }