forked from sebiwi/kubernetes-coreos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes.yml
55 lines (48 loc) · 1.08 KB
/
kubernetes.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
50
51
52
53
54
55
---
- name: Bootstrap coreos hosts
hosts: all
gather_facts: false
roles:
- role: bootstrap/ansible-bootstrap
tags: [ ansible-bootstrap ]
- name: Create certificates for Kubernetes componentes
hosts: all
become: false
roles:
- role: configure/ca
tags: [ ca ]
delegate_to: 127.0.0.1
- name: Configure etcd cluster
hosts: etcd
become: true
roles:
- role: configure/etcd
tags: [ etcd ]
- name: Configure Kubernetes master node
hosts: kube-master
become: true
roles:
- role: configure/kube-master
tags: [ kube-master ]
- name: Configure Kubernetes worker node
hosts: kube-worker
become: true
roles:
- role: configure/kube-worker
tags: [ kube-worker ]
- name: Configure kubectl
hosts: all
become: false
roles:
- role: configure/kubectl
tags: [ kubectl ]
delegate_to: 127.0.0.1
run_once: yes
- name: Add extra Kubernetes components
hosts: all
become: false
roles:
- role: configure/kube-components
tags: [ kube-components ]
delegate_to: 127.0.0.1
run_once: yes