Install docker
http://www.panticz.de/docker
Install minikube
https://minikube.sigs.k8s.io/docs/start/
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_$(dpkg --print-architecture).deb sudo dpkg -i minikube_latest_*.deb rm minikube_latest_*.deb sudo usermod -aG docker $USER && newgrp docker minikube start minikube addons enable ingress
Install kubectl
https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-using-native-package-management
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list sudo apt-get update sudo apt-get install -y kubectl kubectl completion bash | sudo tee /etc/bash_completion.d/kubectl source /etc/bash_completion.d/kubectl echo "alias k=kubectl" >> ~/.bashrc echo "complete -o default -F __start_kubectl k" >> ~/.bashrc
Test configuration
kubectl get all --all-namespaces -o wide
Install k9s
https://github.com/derailed/k9s/releases
K9S_VERSION=0.32.4 wget -q https://github.com/derailed/k9s/releases/download/v${K9S_VERSION}/k9s_linux_$(dpkg --print-architecture).deb -P /tmp/ sudo dpkg -i /tmp/k9s_linux_$(dpkg --print-architecture).deb rm /tmp/k9s_linux_*.deb
Configure port forwad to minikube
HOST_IP=$(hostname -I | cut -d" " -f1) HOST_NIC=$(ip -o a | grep ${HOST_IP} | cut -d" " -f2) MINIKUBE_IP=$(minikube ip) sudo iptables -A FORWARD -i ${HOST_NIC} -p tcp --dport 80 -j ACCEPT sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination ${MINIKUBE_IP}:80 sudo iptables -A FORWARD -i ${HOST_NIC} -p tcp --dport 443 -j ACCEPT sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination ${MINIKUBE_IP}:443
Multi node
https://minikube.sigs.k8s.io/docs/tutorials/multi_node/#tutorial
Install Minikube on Raspberry Pi 4
https://gist.github.com/lucaguada/e4c3725542c1cafa1fb3ea8a56c7e2d0#file-raspberry_pi_4-md