Documentation -> https://kubernetes.io/docs/concepts/workloads/controllers/
sudo su -
sudo iptables -F bin/iptables-legacy | sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
reboot
curl -sfl https://get.k3s.io | K3S_KUBECONFIG_MODE="644" sh -s
kubectl get nodes
cat /var/lib/rancher/k3s/server/node-token
curl -sfL https://get.k3s.io | K3S_TOKEN="[token from previous step]" K3S_URL="https://[MASTER NODE IP]:6443" K3S_NODE_NAME="[NODE NAME]" sh -
kubectl apply -f [name of the file].yaml
kubectl get pods
kubectl get pods -o wide
TODO
kubectl get services
mkdir /etc/rancher/rke2
touch config.yaml
token: myrancher
tls-san:
- 192.168.50.109
curl -sfL https://get.rancher.io | sh -