mirror of https://github.com/easzlab/kubeasz.git
更新k8s1.8.6
parent
a5ca100d82
commit
8b7a90da34
|
@ -16,10 +16,10 @@
|
|||
|
||||
## 组件版本
|
||||
|
||||
1. kubernetes v1.8.4
|
||||
1. etcd v3.2.10
|
||||
1. docker 17.09.0-ce
|
||||
1. calico/node v2.6.2
|
||||
1. kubernetes v1.8.6
|
||||
1. etcd v3.2.11
|
||||
1. docker 17.09.1-ce
|
||||
1. calico/node v2.6.3
|
||||
|
||||
附:集群用到的所有二进制文件已打包好供下载 [https://pan.baidu.com/s/1c4RFaA](https://pan.baidu.com/s/1c4RFaA)
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# 主要组件版本
|
||||
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
|
||||
|
|
|
@ -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.184.tar.gz
|
||||
tar zxvf k8s.186.tar.gz
|
||||
mv bin/* /etc/ansible/bin
|
||||
# 配置ansible的hosts文件,并且根据上文实际规划修改此hosts文件
|
||||
cd /etc/ansible
|
||||
|
|
|
@ -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镜像,而且更新及时,感谢维护者的辛勤付出!后文将看到部署附加组件时基本都是用他们的镜像。
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
||||
**查看网卡和路由信息**
|
||||
|
|
|
@ -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.184.tar.gz
|
||||
tar zxvf k8s.186.tar.gz
|
||||
mv bin/* /etc/ansible/bin
|
||||
# 配置ansible的hosts文件
|
||||
cd /etc/ansible
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
#!/bin/bash
|
||||
#主要组件版本如下
|
||||
export K8S_VER=v1.8.4
|
||||
export ETCD_VER=v3.2.10
|
||||
export DOCKER_VER=17.09.0-ce
|
||||
export CALICO_VER=v2.6.2
|
||||
export K8S_VER=v1.8.6
|
||||
export ETCD_VER=v3.2.11
|
||||
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-184.all.tar.gz,然后解压到bin目录"
|
||||
echo "\n建议直接下载本人打包好的所有必要二进制包k8s-190.all.tar.gz,然后解压到bin目录"
|
||||
echo "\n建议不使用此脚本,如果你想升级组件或者实验,请通读该脚本,必要时适当修改后使用"
|
||||
echo "\n注意1:因为网络原因不进行自动下载,请按照以下链接手动下载二进制包到down目录中"
|
||||
echo "\n注意2:如果还没有手工下载tar包,请Ctrl-c结束此脚本"
|
||||
|
|
|
@ -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]
|
||||
# ---------集群主要参数---------------
|
||||
|
|
|
@ -36,7 +36,7 @@ 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]
|
||||
|
|
|
@ -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]
|
||||
# ---------集群主要参数---------------
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# 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
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# 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
|
||||
|
|
Loading…
Reference in New Issue