From b63f039708f7402e365617d0f5babca151a0e96b Mon Sep 17 00:00:00 2001 From: rootsongjc Date: Thu, 22 Mar 2018 09:57:12 +0800 Subject: [PATCH] updte --- README-cn.md | 7 +++++++ README.md | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/README-cn.md b/README-cn.md index b48926a..0d8b8fe 100644 --- a/README-cn.md +++ b/README-cn.md @@ -88,6 +88,13 @@ vagrant box add CentOS-7-x86_64-Vagrant-1801_02.VirtualBox.box --name centos/7 将`conf/admin.kubeconfig`文件放到`~/.kube/config`目录下即可在本地使用`kubectl`命令操作集群。 +```bash +mkdir -p ~/.kube +cp conf/admin.kubeconfig ~/.kube/config +``` + +我们推荐您使用这种方式。 + **在虚拟机内部访问** 如果有任何问题可以登录到虚拟机内部调试: diff --git a/README.md b/README.md index 6081e3e..b454fba 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,11 @@ There are 3 ways to access the kubernetes cluster. Copy `conf/admin.kubeconfig` to `~/.kube/config`, using `kubectl` CLI to access the cluster. +```bash +mkdir -p ~/.kube +cp conf/admin.kubeconfig ~/.kube/config +``` + We recommend this way. **VM**