Skip to content

Commit e774566

Browse files
committed
Add centos/7 box manually
1 parent 8fd698d commit e774566

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

README-cn.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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集群的方式有三种:

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff 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
5558
git clone https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster.git
5659
cd kubernetes-vagrant-centos-cluster
5760
vagrant 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+
6068
Wait 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

6485
There are 3 ways to access the kubernetes cluster.

0 commit comments

Comments
 (0)