File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,17 @@ vagrant up
6363
6464如果是首次部署,会自动下载` centos/7 ` 的box,这需要花费一些时间,另外每个节点还需要下载安装一系列软件包,整个过程大概需要10几分钟。
6565
66+ 如果您在运行` vagrant up ` 的过程中发现无法下载` centos/7 ` 的box,可以手动下载后将其添加到vagrant中。
67+
68+ ** 手动添加centos/7 box**
69+
70+ ```` bash
71+ wget -c http://cloud.centos.org/centos/7/vagrant/x86_64/images/CentOS-7-x86_64-Vagrant-1801_02.VirtualBox.box
72+ vagrant box add CentOS-7-x86_64-Vagrant-1801_02.VirtualBox.box --name centos/7
73+ ````
74+
75+ 这样下次运行` vagrant up ` 的时候就会自动读取本地的` centos/7 ` box而不会再到网上下载。
76+
6677### 访问kubernetes集群
6778
6879访问Kubernetes集群的方式有三种:
Original file line number Diff line number Diff line change @@ -51,14 +51,35 @@ The container network range is `170.33.0.0/16` owned by flanneld with `host-gw`
5151- Helm
5252
5353#### Setup
54+
55+ Download kubernetes binary release first and move them to this git repo.
56+
5457``` bash
5558git clone https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster.git
5659cd kubernetes-vagrant-centos-cluster
5760vagrant up
5861```
5962
63+ Before you run ` vagrant up ` make sure this repo directory include the flowing files:
64+
65+ - kubernetes-client-linux-amd64.tar.gz
66+ - kubernetes-server-linux-amd64.tar.gz
67+
6068Wait about 10 minutes the kubernetes cluster will be setup automatically.
6169
70+ ** Note**
71+
72+ If you have difficult to vagrant up the cluster because of have no way to downlaod the ` centos/7 ` box, you can download the box and add it first.
73+
74+ ** Add centos/7 box manually**
75+
76+ ``` bash
77+ wget -c http://cloud.centos.org/centos/7/vagrant/x86_64/images/CentOS-7-x86_64-Vagrant-1801_02.VirtualBox.box
78+ vagrant box add CentOS-7-x86_64-Vagrant-1801_02.VirtualBox.box --name centos/7
79+ ```
80+
81+ The next time you run ` vagrant up ` , vagrant will import the local box automatically.
82+
6283#### Connect to kubernetes cluster
6384
6485There are 3 ways to access the kubernetes cluster.
You can’t perform that action at this time.
0 commit comments