-
Notifications
You must be signed in to change notification settings - Fork 17
/
deploy.yml
71 lines (65 loc) · 1.23 KB
/
deploy.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
63
64
65
66
67
68
69
70
71
---
- name: Base environment configuration
hosts: all
become: true
any_errors_fatal: true
roles:
- prepare
- chrony
- name: Certificate of the cluster
hosts: all
become: true
any_errors_fatal: true
roles:
- ca
- name: Deployment etcd cluster
hosts: "{% if groups['etcd'] is not defined %}master{% else %}etcd{% endif %}"
become: true
gather_facts: true
any_errors_fatal: true
vars:
scale: false
roles:
- etcd
- name: Initialization kubernetes dependence
hosts: kubernetes
become: true
any_errors_fatal: true
roles:
- cni
- ipvsadm
- name: Deployment kubernetes master
hosts: master
become: true
gather_facts: true
any_errors_fatal: true
roles:
- haproxy
- keepalived
- "{{ KUBE_RUNTIME }}"
- kubectl
- kube-apiserver
- kube-scheduler
- kube-controller-manager
- kubelet
- kube-proxy
- motd
- cleanup
- name: Deployment kubernetes worker
hosts: worker
become: true
gather_facts: true
any_errors_fatal: true
roles:
- "{{ KUBE_RUNTIME }}"
- kubectl
- kubelet
- kube-proxy
- motd
- cleanup
- name: Deployment kubernetes add-on
hosts: master
become: true
any_errors_fatal: true
roles:
- add-on