kubectl and minikube setup

1# install minikube and try to use kubectl to interact with it. It gave me error, “Unable to connect to the server: x509: cannot validate certificate for 192.168.99.100 because it doesn’t contain any IP SANs”. The problem is, my laptop is under a firewall and I have setup the http(s) proxies. I had to set a no_proxy for the local IPs before I ran kubectl to avoid this issue.

2# I had a standalone Docker installed on my Mac OSX 10.12 and then I installed minikube. The minikube has its owned Docker. I ran ‘eval $(minikube docker-env) to use minikube’s docker to try to build something before I deploy it to minikube. However the minikube’s Docker always failed to connect to docker.io with all of the means I tried to make my standalone Docker works perfectly. I had to uninstall the standalone Docker and then re-installed minikube to fix this problem.

3# After I fixed 2#. I found that no docker or docker-compose executables under /usr/local/bin (the symbol links are broken) but docker-machine executable does exists. I had to download a standalone Docker installer and then re-install it. After that no need to launch the Docker from Application panel as I will still use the docker from minikube.

After 1#, 2# and 3#, the minikube is all setup well on my Mac OSX 10.12