forked from Frewx/ansible-kubernetes-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-kubernetes.yml
44 lines (37 loc) · 919 Bytes
/
install-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
- name: Installing kubernetes packages on all hosts...
hosts: kubemaster,kubeworkers
become: true
roles:
- install-kubernetes-packages
- name: Disabling swap on all hosts...
hosts: kubemaster,kubeworkers
become: true
roles:
- disable-swap
- name: Configuring networks on hosts...
hosts: kubemaster,kubeworkers
become: true
roles:
- configure-network-rules
- name: Installing kubectl on master node...
hosts: kubemaster
become: true
roles:
- install-kubectl
- name: Deploying kubernetes cluster...
hosts: kubemaster
become: true
roles:
- deploy-kubernetes
- name: Getting token from the master node...
hosts: kubemaster,kubeworkers
become: true
roles:
- get-join-command
- name: Starting installation of Helm...
hosts: kubemaster
become: true
vars:
join_command: "{{ hostvars['variable_holder']['join_command'] }}"
roles:
- install-helm