kdeng / my-blogs

Kefeng's blogs
0 stars 0 forks source link

Learning kubernetes - 1 #9

Open kdeng opened 5 years ago

kdeng commented 5 years ago

About Minikube

All details about minikube is here.

# start a minikube cluster without proxy
minikube start --vm-driver=hyperkit

--vm-driver=hyperkit means that you are using docker for Mac. The default VM driver is VirtualBox. If there is an installed VirtualBox, you could ignore --vm-driver flag.

# start a minikube cluster with proxy
minikube start --vm-driver=hyperkit --docker-env HTTP_PROXY=http://your-http-proxy-host:your-http-proxy-port

You can use --docker-env HTTPS_PROXY=https://your-http-proxy-host:your-http-proxy-port if necessary.

minikube dashboard

To use the docker host as the Minikube VM, you can run:

# enable minikube docker daemon
eval $(minikube docker-env)

# disable minikube docker daemon
eval $(minikube docker-env -u)

Refer to here