https://github.com/kubernetes/minikube
Note: Ensure that you have an active default virtual machine network setup on your machine. This can be verified using
virsh net-list
You should see something along the lines of
Name State Autostart Persistent
----------------------------------------------------------
default active yes yes
Ensure that it is a NAT network that gives external (internet connectivity)
virsh net-dumpxml default
You should see an entry that say
<forward mode='nat'>
To get it running behind the a proxy you need to setup things a bit differently from the documentation
-
Ensure that the proxy is passed into the VM that is created by minikube (this ensures that the docker daemon within the VM can get out to the internet)
minikube start --vm-driver="kvm" --docker-env="http_proxy=xxx" --docker-env="https_proxy=yyy" start
-
Get the IP that the VM gets
minikube ip
-
Ensure that kubectl can talk to this VM without going the proxy
export no_proxy="127.0.0.1,[minikube_ip]"
-
Now kick off the POD and test is
kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080 kubectl expose deployment hello-minikube --type=NodePort kubectl get pod curl $(minikube service hello-minikube --url)
-
Cleanup the cluster minikube stop minikube delete
@Rev1408 looks like the "default" network may be missing. You will need to create the virtual machine default network. Let me add that to the requirement.