-
Notifications
You must be signed in to change notification settings - Fork 196
/
cluster.yml
49 lines (43 loc) · 1.15 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
44
45
46
47
48
49
---
- hosts: masters
become: true
roles:
- { role: cluster-default }
- { role: cluster-path }
- { role: cert, tags: cert }
- hosts: kube-cluster
gather_facts: false
become: true
roles:
- { role: cluster-default }
- { role: cluster-path }
- { role: container-runtime, tags: container-runtime }
- hosts: etcds
become: true
roles:
- { role: cluster-default }
- { role: cluster-path }
- { role: etcd, tags: etcd }
- hosts: masters
become: true
roles:
- { role: cluster-default }
- { role: cluster-path }
- { role: k8s-kubeconfig, node_role: 'master' }
- { role: k8s-setup, node_role: 'master', tags: master-setup }
- { role: k8s-addon, addon: "{{ addons.kubedns }}" }
- { role: k8s-addon, addon: "{{ addons.kubeproxy }}" }
- hosts: nodes
become: true
roles:
- { role: cluster-default }
- { role: cluster-path }
- { role: k8s-kubeconfig, node_role: 'node' }
- { role: k8s-setup, node_role: 'node', tags: node-setup }
- hosts: masters
become: true
gather_facts: false
roles:
- { role: cluster-default }
- { role: cluster-path }
- { role: k8s-cni, when: cni_enable }