Reference URL: http://batizhao.github.io/2018/01/18/Running-Kubernetes-Locally-via-Minikube/
K8s Study Website: https://www.kubernetes.org.cn/installkubectl
Description
Install the Xhyve driver in preparation for the job. Installation is not possible here, as the Visualbox is installed in advance
STEP1: Installing Kubectl
$ Curl-lo https://storage.googleapis.com/kubernetes-release/release/' Curl-sHttps://storage.googleapis.com/kubernetes-release/release/stable.txt'/bin/darwin/amd64/kubectl$ chmod+x./kubectl$ sudo mv./kubectl/usr/local/bin/kubectl$ kubectl versionclient version:version. Info{major:"1", Minor:"9", Gitversion:"v1.9.1", Gitcommit:"3a1c9449a956b6026f075fa3134ff92f7d55f812", Gittreestate:" Clean", Builddate:"2018-01-04t11:52:23z", Goversion:"go1.9.2", Compiler:"GC", Platform:"Darwin/amd64"}server version:version. Info{major:"1", Minor:"8", Gitversion:"v1.8.0", Gitcommit:"0b9efaeb34a2fc51ff8e4d34ad9bc6375459c4a4", Gittreestate:" Clean", Builddate:"2017-11-29t22:43:34z", Goversion:"go1.9.1", Compiler:"GC", Platform:"Linux/amd64"}
STEP2: Installing Minikube
$ Curl-lo minikube https://STORAGE.GOOGLEAPIS.COM/MINIKUBE/RELEASES/V0.24.1/MINIKUBE-DARWIN-AMD64 && chmod +x minikube && sudo mv minikube/usr/local/bin/$ minikube versionminikube version:v0.
24.1
Start the cluster
$ minikube Start
View nodes
Get Node
A problem occurred:
Workaround:
$ CD. kube/-ef | grep minizbmac-:. Kube shiyufeng$ Brew Install Wgetzbmac-:.kube shiyufeng$ chmod +x kubectl zbmac
get nodeszbmac-:. Kube shiyufeng$ which Kubectlzbmac-:.kube shiyufeng$ mv kubectl/usr/ local/bin/Zbmac-:. Kube shiyufeng$ kubectl versionzbmacget nodeszbmacget Pods--all-namespces
Zbmac-:.kube shiyufeng$ minikube Start
mac016--installation k8s