单机部署
创建Kubernetes cluster(单机版)最简单的方法是minikube:
首先下载kubectl
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.6.4/bin/linux/amd64/kubectl chmod +x kubectl
安装minikube
# install minikube $ brew cask install minikube $ brew install docker-machine-driver-xhyve # docker-machine-driver-xhyve need root owner and uid $ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve $ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
最后启动minikube
# start minikube. # http proxy is required in China $ minikube start --docker-env HTTP_PROXY=http://proxy-ip:port --docker-env HTTPS_PROXY=http://proxy-ip:port --vm-driver=xhyve
开发版
minikube/localkube只提供了正式release版本,而如果想要部署master或者开发版的话,则可以用hack/local-up-cluster.sh来启动一个本地集群:
cd $GOPATH/src/k8s.io/kubernetes export KUBERNETES_PROVIDER=local hack/install-etcd.sh export PATH=$GOPATH/src/k8s.io/kubernetes/third_party/etcd:$PATH hack/local-up-cluster.sh
打开另外一个终端,配置kubectl:
cd $GOPATH/src/k8s.io/kubernetes
export KUBECONFIG=/var/run/kubernetes/admin.kubeconfig
cluster/kubectl.sh
前提是要有一台mac
哈哈,可以看看*inx版的
minikube在ubuntu上安装似乎需要用的命令是这个
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.7.1/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
alert(“哈哈哈哈哈”)
console.info(“123123123”);
alert(“蛤蛤蛤”)
alert(“test”);
楼上诸位太皮了
console.log(‘= =’)
Ubuntu感受到深深地恶意
alert(“hello world”)
System.out.println(“那年夏天的猫!”);
mac 执行原命令会报错:
brew cask install minikube
改为 :
brew install minikube
Minikube is no longer available as a cask.
Change command
brew cask install minikube
to
brew install minikube
Hello ! I am the one who writes posts on these topics majorsite I would like to write an article based on your article. When can I ask for a review?