forked from kairen/kube-ansible
-
Notifications
You must be signed in to change notification settings - Fork 7
/
cluster.yml
43 lines (37 loc) · 1006 Bytes
/
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: true
roles:
- { role: cluster-default }
- { role: cert, tags: cert }
- hosts: kube-cluster
gather_facts: false
become: true
roles:
- { role: cluster-default }
- { role: container-runtime, tags: container-runtime }
- hosts: etcds
become: true
roles:
- { role: cluster-default }
- { role: etcd, tags: etcd }
- hosts: masters
become: true
roles:
- { role: cluster-default }
- { 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: 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: k8s-cni, when: cni_enable }