minikube (Kubernetes Development)
If you want to develop something for kubernetes, you may need to run minikube. This can be done on our linux installations, the following commands should start a working “kubernetes cluster” on your installation:
mkdir ~/bin/
wget https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 -O ~/bin/minikube
chmod 755 ~/bin/minikube
cd ~/bin/
./minikube config set rootless true
./minikube config set driver podman
./minikube config set container-runtime containerd
./minikube start --cni calico
After minikube has started you can check all running pods with the following:
minikube kubectl -- get pods -A
You can also install kubectl and helm in your ~/bin if you like:
cd ~/bin/
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
export HELM_INSTALL_DIR=~/bin; export USE_SUDO=false; curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
Posted on
in General Information,Linux