-
Notifications
You must be signed in to change notification settings - Fork 18
/
main.yml
62 lines (57 loc) · 1.18 KB
/
main.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
62
#
# This roles generate CA & kubeconfig in deployer node
# deployer node send the CA & kubeconfig into all nodes
#
- name: generate certificate & kubeconfig
become: yes
hosts: deployer
roles:
- certificate-ca
- certificate-etcd
- certificate-master
- certificate-worker
#
# data encryption for etcd
# https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/
#
- name: generate data-encryption
become: yes
hosts: deployer
roles:
- data-encryption
#
# This roles setup etcd cluster in etcd group ansible
# you can merge etcd into master
# by changing etcd group IP into master IP
#
- name: setup etcd cluster
become: yes
hosts: etcd
roles:
- kubernetes-etcd
#
# This roles setup haproxy keepalived in master node
# and setup master cluster
#
- name: setup master cluter
become: yes
hosts: master
roles:
- kubernetes-loadbalancer
- kubernetes-master
#
# This roles setup worker cluster in master & worker node
#
- name: setup worker
become: yes
hosts: worker,master
roles:
- kubernetes-worker
#
# this roles setup CNI, DNS, and taint master node
#
- name: setup addons
become: yes
hosts: master
roles:
- kubernetes-addons