-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathcluster.yml
61 lines (53 loc) · 1010 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
# This playbook deploys a kubernetes cluster with the default addons.
# Install yum-repo
- hosts: all
roles:
- role: yum-repo
when: ansible_os_family == "RedHat"
tags:
- yum-repo
# Install sslcert
- hosts: sslhost
roles:
- role: sslcert
tags:
- sslcert
# Install etcd
- hosts: etcd
roles:
- role: etcd
tags:
- etcd
# Install container runtime
- hosts: all
roles:
- { role: runtime-env }
- { role: docker, when: not containerd.enabled }
- { role: containerd, when: containerd.enabled }
tags:
- runtime
# install haproxy
- hosts: masters
roles:
- { role: haproxy, when: haproxy.enabled }
tags:
- haproxy
# install keepalived
- hosts: masters
roles:
- { role: keepalived, when: keepalived.enabled }
tags:
- keepalived
# install kubernetes master services
- hosts: masters
roles:
- role: master
tags:
- master
# install kubernetes on the nodes
- hosts: node
roles:
- role: node
tags:
- node