-
-
Save osadalakmal/513006bdc1163afdd403947b20b775d9 to your computer and use it in GitHub Desktop.
HOWTO: minikube behind a proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/kubernetes/minikube | |
To get it running behind the a proxy you need to setup things a bit differently from the documentation | |
1. 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 | |
2. Get the IP that the VM gets | |
minikube ip | |
3. Ensure that kubectl can talk to this VM without going the proxy | |
export no_proxy="127.0.0.1,[minikube_ip]" | |
4. 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) | |
5. Cleanup the cluster | |
minikube stop | |
minikube delete | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment