Skip to content

Commit

Permalink
update k8s 1.9.6 && minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed Mar 28, 2018
1 parent 556c2a5 commit 99ea4b1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 25 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

## 组件版本

- kubernetes v1.9.4
- kubernetes v1.9.6
- etcd v3.3.2
- docker 17.12.0-ce
- calico/node v3.0.3
- docker 18.03.0-ce
- calico/node v3.0.4
- flannel v0.10.0
- 附:集群用到的所有二进制文件已打包好供下载 [https://pan.baidu.com/s/1c4RFaA](https://pan.baidu.com/s/1c4RFaA)
- 注:`Kubernetes v1.8.x` 版本请切换到项目分支 `v1.8`, 若你需要从v1.8 升级至 v1.9,请参考 [升级注意](docs/upgrade.md)
Expand Down
4 changes: 2 additions & 2 deletions bin/VERSION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 主要组件版本

+ kubernetes v1.9.4
+ kubernetes v1.9.6
+ etcd v3.3.2
+ docker 17.12.0-ce
+ docker 18.03.0-ce
4 changes: 2 additions & 2 deletions down/download.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
#主要组件版本如下
export K8S_VER=v1.9.4
export K8S_VER=v1.9.6
export ETCD_VER=v3.3.2
export DOCKER_VER=17.12.0-ce
export DOCKER_VER=18.03.0-ce
export CNI_VER=v0.7.0
export DOCKER_COMPOSE=1.18.0
export HARBOR=v1.2.2
Expand Down
5 changes: 0 additions & 5 deletions roles/calico/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@
- name: 删除默认cni配置
file: path=/etc/cni/net.d/10-default.conf state=absent

# 删除原有cni插件网卡mynet0
- name: 删除默认cni插件网卡mynet0
shell: "ip link del mynet0"
ignore_errors: true

# [可选]cni calico plugins 已经在calico.yaml完成自动安装
- name: 下载calicoctl 客户端
copy: src={{ base_dir }}/bin/{{ item }} dest={{ bin_dir }}/{{ item }} mode=0755
Expand Down
22 changes: 11 additions & 11 deletions roles/calico/templates/calico.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Calico Version v3.0.3
# https://docs.projectcalico.org/v3.0/releases#v3.0.3
# Calico Version v3.0.4
# https://docs.projectcalico.org/v3.0/releases#v3.0.4
# This manifest includes the following component versions:
# calico/node:v3.0.3
# calico/cni:v2.0.1
# calico/kube-controllers:v2.0.1
# calico/node:v3.0.4
# calico/cni:v2.0.3
# calico/kube-controllers:v2.0.2

# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
Expand Down Expand Up @@ -96,8 +96,8 @@ spec:
# container programs network policy and routes on each
# host.
- name: calico-node
#image: quay.io/calico/node:v3.0.3
image: calico/node:v3.0.3
#image: quay.io/calico/node:v3.0.4
image: calico/node:v3.0.4
env:
# The location of the Calico etcd cluster.
- name: ETCD_ENDPOINTS
Expand Down Expand Up @@ -193,8 +193,8 @@ spec:
# This container installs the Calico CNI binaries
# and CNI network config file on each node.
- name: install-cni
#image: quay.io/calico/cni:v2.0.1
image: calico/cni:v2.0.1
#image: quay.io/calico/cni:v2.0.3
image: calico/cni:v2.0.3
command: ["/install-cni.sh"]
env:
# Name of the CNI config file to create.
Expand Down Expand Up @@ -276,8 +276,8 @@ spec:
serviceAccountName: calico-kube-controllers
containers:
- name: calico-kube-controllers
#image: quay.io/calico/kube-controllers:v2.0.1
image: calico/kube-controllers:v2.0.1
#image: quay.io/calico/kube-controllers:v2.0.2
image: calico/kube-controllers:v2.0.2
env:
# The location of the Calico etcd cluster.
- name: ETCD_ENDPOINTS
Expand Down
4 changes: 2 additions & 2 deletions roles/kube-node/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
shell: "systemctl status kubelet.service|grep Active"
register: kubelet_status
until: '"running" in kubelet_status.stdout'
retries: 3
retries: 8
delay: 2

- name: 获取csr 请求信息
Expand All @@ -78,5 +78,5 @@
shell: "{{ bin_dir }}/kubectl get node|grep {{ NODE_IP }}|awk '{print $2}'"
register: node_status
until: node_status.stdout == "Ready" or node_status.stdout == "Ready,SchedulingDisabled"
retries: 5
retries: 8
delay: 5

0 comments on commit 99ea4b1

Please sign in to comment.