diff --git a/README.md b/README.md index ca28e8c..813903f 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/bin/VERSION.md b/bin/VERSION.md index c7c0518..b4f6a9a 100644 --- a/bin/VERSION.md +++ b/bin/VERSION.md @@ -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 diff --git a/docs/00-集群规划和基础参数设定.md b/docs/00-集群规划和基础参数设定.md index fe10b81..72517bc 100644 --- a/docs/00-集群规划和基础参数设定.md +++ b/docs/00-集群规划和基础参数设定.md @@ -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 diff --git a/docs/04-安装docker服务.md b/docs/04-安装docker服务.md index e29158c..a0f5ea1 100644 --- a/docs/04-安装docker服务.md +++ b/docs/04-安装docker服务.md @@ -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镜像,而且更新及时,感谢维护者的辛勤付出!后文将看到部署附加组件时基本都是用他们的镜像。 diff --git a/docs/05-安装calico网络组件.md b/docs/05-安装calico网络组件.md index 799dbde..1b5217d 100644 --- a/docs/05-安装calico网络组件.md +++ b/docs/05-安装calico网络组件.md @@ -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 ``` **查看网卡和路由信息** diff --git a/docs/quickStart.md b/docs/quickStart.md index 55878a3..a6a2b8b 100644 --- a/docs/quickStart.md +++ b/docs/quickStart.md @@ -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 diff --git a/down/download.sh b/down/download.sh index 9bb53d3..bee4ffe 100644 --- a/down/download.sh +++ b/down/download.sh @@ -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结束此脚本" diff --git a/example/hosts.allinone.example b/example/hosts.allinone.example index f17ba23..8387308 100644 --- a/example/hosts.allinone.example +++ b/example/hosts.allinone.example @@ -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] # ---------集群主要参数--------------- diff --git a/example/hosts.m-masters.example b/example/hosts.m-masters.example index fa76e7e..f262ec7 100644 --- a/example/hosts.m-masters.example +++ b/example/hosts.m-masters.example @@ -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] diff --git a/example/hosts.s-master.example b/example/hosts.s-master.example index 690ba37..29c7fb0 100644 --- a/example/hosts.s-master.example +++ b/example/hosts.s-master.example @@ -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] # ---------集群主要参数--------------- diff --git a/roles/calico/templates/calico-node.service.j2 b/roles/calico/templates/calico-node.service.j2 index aa0c7f0..1beb4db 100644 --- a/roles/calico/templates/calico-node.service.j2 +++ b/roles/calico/templates/calico-node.service.j2 @@ -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 diff --git a/roles/kube-node/files/rbac.yaml b/roles/kube-node/files/rbac.yaml index e1398ef..8d2377d 100644 --- a/roles/kube-node/files/rbac.yaml +++ b/roles/kube-node/files/rbac.yaml @@ -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 --- diff --git a/roles/kube-node/templates/calico-kube-controllers.yaml.j2 b/roles/kube-node/templates/calico-kube-controllers.yaml.j2 index 5854b0f..43ccec2 100644 --- a/roles/kube-node/templates/calico-kube-controllers.yaml.j2 +++ b/roles/kube-node/templates/calico-kube-controllers.yaml.j2 @@ -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