Rancher Install
using VirtualBox, vagrant
Prerequisites
Note
vagrant plugin install vagrant-vboxmanagevagrant plugin install vagrant-vbguestConfiguration
Configuration Files
#!/bin/bash
# Enable ssh password authentication
echo "[TASK 1] Enable ssh password authentication"
sed -i 's/^PasswordAuthentication .*/PasswordAuthentication yes/' /etc/ssh/sshd_config
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
systemctl reload sshd
# Set Root password
echo "[TASK 2] Set root password"
echo -e "kubeadmin\nkubeadmin" | passwd root >/dev/null 2>&1
# Set Rancher
apt-get update && apt-get install -y ca-certificates curl gnupg lsb-release
mkdir -m 0755 -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update && apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
apt-get install -y vim net-tools
cat <<EOF > /etc/docker/daemon.json
{
"insecure-registries" : [ "192.168.129.106:5001" ]
}
EOF
systemctl daemon-reload && systemctl restart dockerhostname
cpus
memory(GiB)
IP
Purpose

Build VMs

Repository in Host
Run Rancher
Rancher web
connect to rancher web (http:192.168.56.10) via web browser
http:192.168.56.10) via web browser
check container id and find password
Set new password and continue


Create New Cluster
Create new Cluster



Add Nodes to Cluster


Provisioning Cluster



References
Last updated