Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Kubeasz
Commits
8b7a90da
Commit
8b7a90da
authored
7 years ago
by
gjmzj
Browse files
Options
Download
Email Patches
Plain Diff
更新k8s1.8.6
parent
a5ca100d
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
README.md
+4
-4
README.md
bin/VERSION.md
+5
-4
bin/VERSION.md
docs/00-集群规划和基础参数设定.md
+1
-1
docs/00-集群规划和基础参数设定.md
docs/04-安装docker服务.md
+1
-1
docs/04-安装docker服务.md
docs/05-安装calico网络组件.md
+3
-3
docs/05-安装calico网络组件.md
docs/quickStart.md
+1
-1
docs/quickStart.md
down/download.sh
+5
-5
down/download.sh
example/hosts.allinone.example
+5
-1
example/hosts.allinone.example
example/hosts.m-masters.example
+1
-1
example/hosts.m-masters.example
example/hosts.s-master.example
+5
-1
example/hosts.s-master.example
roles/calico/templates/calico-node.service.j2
+1
-1
roles/calico/templates/calico-node.service.j2
roles/kube-node/files/rbac.yaml
+2
-2
roles/kube-node/files/rbac.yaml
roles/kube-node/templates/calico-kube-controllers.yaml.j2
+5
-5
roles/kube-node/templates/calico-kube-controllers.yaml.j2
with
39 additions
and
30 deletions
+39
-30
README.md
+
4
-
4
View file @
8b7a90da
...
...
@@ -16,10 +16,10 @@
## 组件版本
1.
kubernetes v1.8.
4
1.
etcd v3.2.1
0
1.
docker 17.09.
0
-ce
1.
calico/node v2.6.
2
1.
kubernetes v1.8.
6
1.
etcd v3.2.1
1
1.
docker 17.09.
1
-ce
1.
calico/node v2.6.
3
附:集群用到的所有二进制文件已打包好供下载
[
https://pan.baidu.com/s/1c4RFaA
](
https://pan.baidu.com/s/1c4RFaA
)
...
...
This diff is collapsed.
Click to expand it.
bin/VERSION.md
+
5
-
4
View file @
8b7a90da
# 主要组件版本
kubernetes v1.8.4
etcd v3.2.10
docker 17.09.0-ce
calico/node v2.6.2
+
kubernetes v1.9.0
+
etcd v3.2.11
+
docker 17.09.1-ce
+
calico/node v2.6.3
This diff is collapsed.
Click to expand it.
docs/00-集群规划和基础参数设定.md
+
1
-
1
View file @
8b7a90da
...
...
@@ -134,7 +134,7 @@ mv kubeasz /etc/ansible
# 下载已打包好的binaries,并且解压缩到/etc/ansible/bin目录
# 国内请从我分享的百度云链接下载 https://pan.baidu.com/s/1c4RFaA
# 如果你有合适网络环境也可以按照/down/download.sh自行从官网下载各种tar包到 ./down目录,并执行download.sh
tar
zxvf k8s.18
4
.tar.gz
tar
zxvf k8s.18
6
.tar.gz
mv
bin/
*
/etc/ansible/bin
# 配置ansible的hosts文件,并且根据上文实际规划修改此hosts文件
cd
/etc/ansible
...
...
This diff is collapsed.
Click to expand it.
docs/04-安装docker服务.md
+
1
-
1
View file @
8b7a90da
...
...
@@ -52,7 +52,7 @@ WantedBy=multi-user.target
}
```
这将在后续部署calico下载 calico/node:v2.6
.2
镜像和kubedns/heapster/dashboard镜像时起到重要加速效果。
这将在后续部署calico下载 calico/node:v2.6镜像和kubedns/heapster/dashboard镜像时起到重要加速效果。
由于K8S的官方镜像存放在
`gcr.io`
仓库,因此这个镜像加速对K8S的官方镜像没有效果;好在
`Docker Hub`
上有很多K8S镜像的转存,而
`Docker Hub`
上的镜像是国内可以加速的。
这里推荐
[
mirrorgooglecontainers
](
https://hub.docker.com/u/mirrorgooglecontainers/
)
几乎能找到所有K8S相关的google镜像,而且更新及时,感谢维护者的辛勤付出!后文将看到部署附加组件时基本都是用他们的镜像。
...
...
This diff is collapsed.
Click to expand it.
docs/05-安装calico网络组件.md
+
3
-
3
View file @
8b7a90da
...
...
@@ -102,7 +102,7 @@ ExecStart={{ bin_dir }}/docker run --net=host --privileged --name=calico-node \
-v
/run/docker/plugins:/run/docker/plugins
\
-v
/var/run/docker.sock:/var/run/docker.sock
\
-v
/var/log/calico:/var/log/calico
\
calico/node:v2.6.
2
calico/node:v2.6.
3
ExecStop
={{
bin_dir
}}
/docker
rm
-f
calico-node
Restart
=
always
RestartSec
=
10
...
...
@@ -162,12 +162,12 @@ spec:
### 验证calico网络
执行calico安装
`ansible-playbook 05.calico.yml`
成功后可以验证如下:(需要等待calico/node:v2.6.
2
镜像下载完成,有时候即便上一步已经配置了docker国内加速,还是可能比较慢,建议确认以下容器运行起来以后,再执行后续步骤)
执行calico安装
`ansible-playbook 05.calico.yml`
成功后可以验证如下:(需要等待calico/node:v2.6.
x
镜像下载完成,有时候即便上一步已经配置了docker国内加速,还是可能比较慢,建议确认以下容器运行起来以后,再执行后续步骤)
```
bash
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
631dde89eada calico/node:v2.6.
2
"start_runit"
10 minutes ago Up 10 minutes calico-node
631dde89eada calico/node:v2.6.
x
"start_runit"
10 minutes ago Up 10 minutes calico-node
```
**查看网卡和路由信息**
...
...
This diff is collapsed.
Click to expand it.
docs/quickStart.md
+
1
-
1
View file @
8b7a90da
...
...
@@ -53,7 +53,7 @@ mv kubeasz /etc/ansible
# 下载已打包好的binaries,并且解压缩到/etc/ansible/bin目录
# 国内请从我分享的百度云链接下载 https://pan.baidu.com/s/1c4RFaA
# 如果你有合适网络环境也可以按照/down/download.sh自行从官网下载各种tar包到 ./down目录,并执行download.sh
tar
zxvf k8s.18
4
.tar.gz
tar
zxvf k8s.18
6
.tar.gz
mv
bin/
*
/etc/ansible/bin
# 配置ansible的hosts文件
cd
/etc/ansible
...
...
This diff is collapsed.
Click to expand it.
down/download.sh
+
5
-
5
View file @
8b7a90da
#!/bin/bash
#主要组件版本如下
export
K8S_VER
=
v1.8.
4
export
ETCD_VER
=
v3.2.1
0
export
DOCKER_VER
=
17.09.
0
-ce
export
CALICO_VER
=
v2.6.
2
export
K8S_VER
=
v1.8.
6
export
ETCD_VER
=
v3.2.1
1
export
DOCKER_VER
=
17.09.
1
-ce
export
CALICO_VER
=
v2.6.
3
export
DOCKER_COMPOSE
=
1.18.0
export
HARBOR
=
v1.2.2
echo
"
\n
建议直接下载本人打包好的所有必要二进制包k8s-1
84
.all.tar.gz,然后解压到bin目录"
echo
"
\n
建议直接下载本人打包好的所有必要二进制包k8s-1
90
.all.tar.gz,然后解压到bin目录"
echo
"
\n
建议不使用此脚本,如果你想升级组件或者实验,请通读该脚本,必要时适当修改后使用"
echo
"
\n
注意1:因为网络原因不进行自动下载,请按照以下链接手动下载二进制包到down目录中"
echo
"
\n
注意2:如果还没有手工下载tar包,请Ctrl-c结束此脚本"
...
...
This diff is collapsed.
Click to expand it.
example/hosts.allinone.example
+
5
-
1
View file @
8b7a90da
...
...
@@ -20,7 +20,11 @@ kube-master
# 如果启用harbor,请配置后面harbor相关参数
[harbor]
#10.100.97.44 NODE_IP="192.168.1.8"
#192.168.1.8 NODE_IP="192.168.1.8"
# 预留组,后续添加node节点使用
[new-node]
#192.168.1.xx NODE_ID=node6 NODE_IP="192.168.1.xx"
[all:vars]
# ---------集群主要参数---------------
...
...
This diff is collapsed.
Click to expand it.
example/hosts.m-masters.example
+
1
-
1
View file @
8b7a90da
...
...
@@ -36,7 +36,7 @@ kube-master
# 如果启用harbor,请配置后面harbor相关参数
[harbor]
#1
0.100.97.44
NODE_IP="192.168.1.8"
#1
92.168.1.8
NODE_IP="192.168.1.8"
# 预留组,后续添加node节点使用
[new-node]
...
...
This diff is collapsed.
Click to expand it.
example/hosts.s-master.example
+
5
-
1
View file @
8b7a90da
...
...
@@ -24,7 +24,11 @@ kube-master
# 如果启用harbor,请配置后面harbor相关参数
[harbor]
#10.100.97.44 NODE_IP="192.168.1.8"
#192.168.1.8 NODE_IP="192.168.1.8"
# 预留组,后续添加node节点使用
[new-node]
#192.168.1.xx NODE_ID=node6 NODE_IP="192.168.1.xx"
[all:vars]
# ---------集群主要参数---------------
...
...
This diff is collapsed.
Click to expand it.
roles/calico/templates/calico-node.service.j2
+
1
-
1
View file @
8b7a90da
...
...
@@ -28,7 +28,7 @@ ExecStart={{ bin_dir }}/docker run --net=host --privileged --name=calico-node \
-v /run/docker/plugins:/run/docker/plugins \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/log/calico:/var/log/calico \
calico/node:v2.6.
2
calico/node:v2.6.
3
ExecStop={{ bin_dir }}/docker rm -f calico-node
Restart=always
RestartSec=10
...
...
This diff is collapsed.
Click to expand it.
roles/kube-node/files/rbac.yaml
+
2
-
2
View file @
8b7a90da
# Calico Version v2.6.
2
# https://docs.projectcalico.org/v2.6/releases
#v2.6.2
# Calico Version v2.6.
x
# https://docs.projectcalico.org/v2.6/releases
---
...
...
This diff is collapsed.
Click to expand it.
roles/kube-node/templates/calico-kube-controllers.yaml.j2
+
5
-
5
View file @
8b7a90da
# Calico Version v2.6.
2
# https://docs.projectcalico.org/v2.6/releases
#v2.6.2
# Calico Version v2.6.
x
# https://docs.projectcalico.org/v2.6/releases
# This manifest includes the following component versions:
# calico/kube-controllers:v1.0.
0
# calico/kube-controllers:v1.0.
1
# Create this manifest using kubectl to deploy
# the Calico Kubernetes controllers.
...
...
@@ -31,8 +31,8 @@ spec:
serviceAccountName: calico-kube-controllers
containers:
- name: calico-kube-controllers
#image: quay.io/calico/kube-controllers:v1.0.
0
image: calico/kube-controllers:v1.0.
0
#image: quay.io/calico/kube-controllers:v1.0.
1
image: calico/kube-controllers:v1.0.
1
env:
# Configure the location of your etcd cluster.
- name: ETCD_ENDPOINTS
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment