标签:release pre chmod 安装 commit 准备工作 net mini cli
参考网址:http://batizhao.github.io/2018/01/18/Running-Kubernetes-Locally-via-Minikube/
k8s学习网址:https://www.kubernetes.org.cn/installkubectl
说明:
准备工作中安装 xhyve 驱动程序。此处可以不用安装,因为事先快已安装visualBox
$ curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/darwin/amd64/kubectl $ chmod +x ./kubectl $ sudo mv ./kubectl /usr/local/bin/kubectl $ kubectl version Client 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"}
$ 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 version minikube version: v0.24.1
启动集群
$ minikube start
查看节点
$ kubectl get node
出现问题:
解决方法:
$ cd .kube/ $ ps -ef | grep mini ZBMAC-:.kube shiyufeng$ brew install wget ZBMAC-:.kube shiyufeng$ chmod +x kubectl ZBMAC-:.kube shiyufeng$ ./kubectl get nodes ZBMAC-:.kube shiyufeng$ which kubectl ZBMAC-:.kube shiyufeng$ mv kubectl /usr/local/bin/ ZBMAC-:.kube shiyufeng$ kubectl version ZBMAC-:.kube shiyufeng$ kubectl get nodes ZBMAC-:.kube shiyufeng$ kubectl get pods --all-namespces
ZBMAC-:.kube shiyufeng$ minikube start
标签:release pre chmod 安装 commit 准备工作 net mini cli
原文地址:https://www.cnblogs.com/kaixinyufeng/p/9255184.html