Aproximate time: 30 minutes
Rancher is an open source management system for Kubernetes. It is a lightweight platform capable of managing a cluster or standalone install. It allows you to be as sophisticated or as basic as you want to be. I am going to show you how to install it in an unsecured manner on a VM in your environment.
- 4 gb of Ram
- 2 CPUs
- 100 gb of Disk Space
- Ubuntu Server 20.04+ installed
1 – sudo nano -c /etc/hosts
192.168.1.140 ohdoc01.cfs.loc ohdoc01
192.168.1.141 ohdoc02.cfs.loc ohdoc02
192.168.1.142 ohdoc03.cfs.loc ohdoc03
192.168.1.143 ohdoc04.cfs.loc ohdoc04
2 – sudo nano -c /etc/resolv.config
3 – ssh into the Device
You must be root to perform the rest of this recipe
4 – sudo -i
5 – mkdir -p /etc/rancher/rke2
6 – cd /etc/rancher/rke2
7 – nano -c config.yaml
token: n3tw0rk2022 <- Any Shared Secret tls-san: - 192.168.1.59
8 – ctrl-x -> y -> save file
9 – curl -sfL https://get.rancher.io | sh –
10 – rancherd –help
Look for the Rancher Kubernetes Engine 2 – near the top
11 – systemctl enable rancherd-server.service <- Enable Rancher Service
12 – systemctl start rancherd-server.service <- Start Rancher Service
13 – journalctl -eu rancherd-server -f <- Check to make sure it’s installing.
14 – rancherd reset-admin <- Reset your admin password.
Thank you again for reading our blog, I hope you enjoy it, please visit again.