# Download the latest Minikubecurl-Lominikubehttps://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64# Make it executablechmod+x./minikube# Move it to your user's executable PATHsudomv./minikube/usr/local/bin/#Set the driver version to Dockerminikubeconfigsetdriverdocker
Install Kubectl
# Download the latest Kubectlcurl-LO"https://dl.k8s.io/release/$(curl-L-shttps://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"# Make it executablechmod+x./kubectl# Move it to your user's executable PATHsudomv./kubectl/usr/local/bin/
Running Minikube
$minikubestart
It will take couple of minutes depending upon your internet connection.
If it shows you an error, it could be possible to your WSL2 is out of date as systemd was introduced in Sept-2022.
To fix that
# In powershell type wsl.exe — update and try running minikube start after restarting wsl
Once your minikube starts working, type:
$kubectlconfiguse-contextminikube
# Start minikube again to enable kubectl in it$minikubestart