-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcrio-centos7.yaml
executable file
·66 lines (54 loc) · 1.44 KB
/
crio-centos7.yaml
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
---
- name: Install kuberenetes packages on all hosts
hosts: kube_master,kube_workers
tasks:
- name: Copy kubernetes repo file to servers
copy:
src: ./containerd.conf
dest: /etc/modules-load.d/
- name: Copy k8s.conf file to servers
copy:
src: ./99-kubernetes-cri.conf
dest: /etc/sysctl.d/
- name: Apply kernel settings
shell: sysctl --system
- name: Copy kubernetes repo file to servers
copy:
src: ./kubernetes.repo
dest: /etc/yum.repos.d/
- name: Copy cri-o repo file to servers
copy:
src: ./stable.repo
dest: /etc/yum.repos.d/
- name: Copy cri-o repo file to servers
copy:
src: ./stable-crio-1.23.repo
dest: /etc/yum.repos.d/
- name: Installing Crio & Crio Tools
package:
name:
- cri-o
- cri-tools
- bash-completion
- vim
- wget
- epel-release
- iproute
- name: Installing kubeadm, kubelet and kubectl
package:
name:
- kubelet-1.23.7
- kubeadm-1.23.7
- kubectl-1.23.7
state: present
disable_excludes: kubernetes
- name: Restart & enable crio service
service:
name: crio
state: restarted
enabled: yes
- name: Restart & enable kubelet service
service:
name: kubelet
state: restarted
enabled: yes