forked from cyclops-k8s/ansible-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.yml
More file actions
65 lines (59 loc) · 1.33 KB
/
install.yml
File metadata and controls
65 lines (59 loc) · 1.33 KB
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
- name: Configure the proxies
hosts: proxies
any_errors_fatal: true
become: true
roles:
- role: kubernetes-defaults
- role: kubernetes-proxy
vars:
skip_checks: true
- name: "Install containerd.io"
hosts:
- kubernetes
any_errors_fatal: true
become: true
roles:
- role: kubernetes-defaults
- role: containerd
serial: 100
vars:
containerd_credentials: "{{ kubernetes_containerd_credentials }}"
containerd_mirror: "{{ kubernetes_containerd_mirror }}"
- name: Install kubernetes pre-requisites
hosts:
- kubernetes
any_errors_fatal: true
become: true
roles:
- role: kubernetes-defaults
- role: kubernetes
serial: 100
- name: Install Control Planes
hosts: control_planes
any_errors_fatal: true
become: true
serial: 1
roles:
- role: kubernetes-defaults
- role: kubernetes-control-plane
- name: Post control plane hooks
hosts: control_planes
any_errors_fatal: true
become: true
roles:
- role: kubernetes-defaults
- role: post-kubernetes-control-plane
- name: Install worker nodes
hosts: worker_nodes
any_errors_fatal: true
become: true
roles:
- role: kubernetes-defaults
- role: kubernetes-worker
- name: Post worker node hooks
hosts: worker_nodes
any_errors_fatal: true
become: true
roles:
- role: kubernetes-defaults
- role: post-kubernetes-worker