Last active
November 15, 2018 20:04
-
-
Save cxhercules/dd3946326119c7d068838ba50c2de3be to your computer and use it in GitHub Desktop.
This file contains hidden or 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
VBoxManage controlvm minikube natpf1 k8s-apiserver,tcp,127.0.0.1,8443,,8443 | |
kubectl config set-cluster minikube-vpn --server=https://127.0.0.1:8443 --insecure-skip-tls-verify | |
kubectl config set-context minikube-vpn --cluster=minikube-vpn --user=minikube | |
kubectl config use-context minikube-vpn | |
VBoxManage controlvm minikube natpf1 k8s-dashboard,tcp,127.0.0.1,30000,,30000 | |
VBoxManage controlvm minikube natpf1 docker,tcp,127.0.0.1,2376,,2376 | |
minikube docker-env|sed 's/192.168.99.101/127.0.0.1/' | |
export DOCKER_TLS_VERIFY="1" | |
export DOCKER_HOST="tcp://127.0.0.1:2376" | |
export DOCKER_CERT_PATH="/Users/chercules/.minikube/certs" | |
export DOCKER_API_VERSION="1.35" | |
# Run this command to configure your shell: | |
# eval $(minikube docker-env|sed 's/192.168.99.101/127.0.0.1/') | |
## To connect to docker repo | |
docker --tlsverify=false ps | |
Reference: | |
https://github.com/kubernetes/minikube/issues/1099#issuecomment-307154111 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment