Add client config for local-up-cluster.sh

pull/10/head
Pengfei Ni 2017-05-15 14:05:31 +08:00
parent 4074f03927
commit cfb199800c
1 changed files with 10 additions and 0 deletions

View File

@ -30,6 +30,16 @@ minikube/localkube只提供了正式release版本而如果想要部署master
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
```sh
cd $GOPATH/src/k8s.io/kubernetes
export KUBECONFIG=/var/run/kubernetes/admin.kubeconfig
cluster/kubectl.sh
```