kubeasz release 3.2.0

pull/1109/head 3.2.0
gjmzj 2022-01-05 20:19:37 +08:00
parent 57c86b0643
commit 5426f10c54
4 changed files with 42 additions and 9 deletions

View File

@ -20,12 +20,10 @@ v1.20 [已认证](https://github.com/cncf/k8s-conformance/tree/master/v1.20/kube
1.解决qiang的问题可以临时去国外公有云创建集群然后运行测试项目。 1.解决qiang的问题可以临时去国外公有云创建集群然后运行测试项目。
2.集群要保障资源建议3个节点左右 2.集群要保障资源建议3个节点
3.网络组件选择calico其他组件可能有bug导致特定测试项失败 3.网络组件选择calico其他组件可能有bug导致特定测试项失败
4.kube-proxy暂时用iptables模式使用ipvs在测试服务sessionAffinity时有bug后续应该会修复
# 附:测试流程 # 附:测试流程
@ -44,7 +42,7 @@ for a High-Availability Kubernetes Cluster, read [more](https://github.com/easzl
(1) Download 'kubeasz' code, the binaries and offline images (1) Download 'kubeasz' code, the binaries and offline images
``` ```
export release=3.1.0 export release=3.2.0
curl -C- -fLO --retry 3 https://github.com/easzlab/kubeasz/releases/download/${release}/ezdown curl -C- -fLO --retry 3 https://github.com/easzlab/kubeasz/releases/download/${release}/ezdown
chmod +x ./ezdown chmod +x ./ezdown
./ezdown -D -m standard ./ezdown -D -m standard
@ -53,9 +51,6 @@ chmod +x ./ezdown
(2) install an all-in-one cluster (2) install an all-in-one cluster
``` ```
cd /etc/kubeasz
sed -i 's/^CLUSTER_NETWORK=.*$/CLUSTER_NETWORK="calico"/g' example/hosts.allinone
sed -i 's/^PROXY_MODE=.*$/PROXY_MODE="iptables"/g' example/hosts.allinone
./ezdown -S ./ezdown -S
docker exec -it kubeasz ezctl start-aio docker exec -it kubeasz ezctl start-aio
``` ```
@ -124,4 +119,3 @@ To clean up Kubernetes objects created by Sonobuoy, run:
``` ```
sonobuoy delete sonobuoy delete
``` ```

View File

@ -0,0 +1,36 @@
## kubeasz 3.2.0 (Slight Cold)
小寒料峭, 盼雪迎春。kubeasz 3.2.0 发布更新支持k8s 1.23 版本。
### 主要更新
- 修改默认容器运行时为containerd如果需要仍旧使用docker请对应修改clusters/${集群名}/hosts 配置项`CONTAINER_RUNTIME`
- 修改默认network-plugin:calico
- 修复CNCF Conformance Test选择ipvs模式时sessionAffinity的问题
- 调整containerd配置文件与版本格式一致
- 调整kube-scheduler启动配置文件
- 调整kube-proxy启用配置文件
### 组件更新
- k8s: v1.23.1
- etcd: v3.5.1
- containerd: 1.5.8
- calico: v3.19.3
- flannel: v0.15.1
- coredns: 1.8.6
- cni-plugins: v1.0.1
- pause: 3.6
- dashboard: v2.4.0
- metrics-server: v0.5.2
- k8s-dns-node-cache: 1.21.1
- nfs-provisioner: v4.0.2
### 其他
- fix: avoid cleaning iptables rules on docker setup
- fix: controller-manager health check issue #1084
- feat: Add docker proxy config at ezdown
- fix: kubectl drain 参数版本差异导致失败的问题
- fix: prepare阶段的一些小问题
- fix: nf_conntrack模块安装判断等

View File

@ -82,6 +82,9 @@ ssh-keygen -t ed25519 -N '' -f ~/.ssh/id_ed25519
ssh-keygen -t rsa -b 2048 -N '' -f ~/.ssh/id_rsa ssh-keygen -t rsa -b 2048 -N '' -f ~/.ssh/id_rsa
ssh-copy-id $IPs #$IPs为所有节点地址包括自身按照提示输入yes 和root密码 ssh-copy-id $IPs #$IPs为所有节点地址包括自身按照提示输入yes 和root密码
# 为每个节点设置python软链接
ssh $IPs ln -s /usr/bin/python3 /usr/bin/python
``` ```
### 4.在部署节点编排k8s安装 ### 4.在部署节点编排k8s安装

View File

@ -9,7 +9,7 @@ ExecStart={{ bin_dir }}/kube-apiserver \
--anonymous-auth=false \ --anonymous-auth=false \
--api-audiences=api,istio-ca \ --api-audiences=api,istio-ca \
--authorization-mode=Node,RBAC \ --authorization-mode=Node,RBAC \
--bind-address=0.0.0.0 \ --bind-address={{ inventory_hostname }} \
--client-ca-file={{ ca_dir }}/ca.pem \ --client-ca-file={{ ca_dir }}/ca.pem \
--endpoint-reconciler-type=lease \ --endpoint-reconciler-type=lease \
--etcd-cafile={{ ca_dir }}/ca.pem \ --etcd-cafile={{ ca_dir }}/ca.pem \