# server
curl -LO && sudo install minikube-linux-amd64 /usr/local/bin/minikube

# client
sudo apt-get update && sudo apt-get install -y apt-transport-https && \
curl -s | sudo apt-key add - && \
echo "deb kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list && \
sudo apt-get update && \
sudo apt-get install -y kubectl

minikube start



Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('')) # install choco

choco install minikube -y  # "server", which can be replaced by k8s in Docker-Desktop.
choco install kubernetes-cli  -y  # "client" / "controller".

minikube start --vm-driver hyperv --hyperv-virtual-switch "Default Switch"  # needs admin. it will use virtualbox by default, we want to use hyperv. 

// Can also create a new V-switch ref.

Note: Docker-Desktop is easier to use (just by one click), but then we do not have minikube command.

checks & tests

kubectl config get-contexts
kubectl run hello-minikube --port=8080
kubectl expose deployment hello-minikube --type=NodePort