fix2: setting dashboard/metrics-server image version

pull/1076/head
gjmzj 2021-09-23 14:50:29 +08:00
parent 094b195ee4
commit 4894a3c56e
7 changed files with 53 additions and 16 deletions

View File

@ -13,31 +13,33 @@
**[news]** 群里大佬上新一套免费[kubernetes架构师课程](https://www.toutiao.com/c/user/token/MS4wLjABAAAA0YFomuMNm87NNysXeUsQdI0Tt3gOgz8WG_0B3MzxsmI/?tab=article),强烈推荐! **[news]** 群里大佬上新一套免费[kubernetes架构师课程](https://www.toutiao.com/c/user/token/MS4wLjABAAAA0YFomuMNm87NNysXeUsQdI0Tt3gOgz8WG_0B3MzxsmI/?tab=article),强烈推荐!
## 快速指南 推荐版本对照
单机快速体验k8s集群的测试环境--[AllinOne部署](docs/setup/quickStart.md)
<table> <table>
<thead> <thead>
<tr> <tr>
<th>Kubernetes version</th> <td>Kubernetes version</td>
<th>1.19</th> <td>1.19</td>
<th>1.20</th> <td>1.20</td>
<th>1.21</th> <td>1.21</td>
<th>1.22</th> <td>1.22</td>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>kubeasz suggestion</td> <td>kubeasz version</td>
<td>2.2.2</td> <td>2.2.2</td>
<td>3.0.1</td> <td>3.0.1</td>
<td>3.1.0</td> <td>3.1.0</td>
<td>3.2.0</td> <td>3.1.1</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
## 快速指南
单机快速体验k8s集群的测试环境--[AllinOne部署](docs/setup/quickStart.md)
- 命令行工具 [ezctl介绍](docs/setup/ezctl.md) - 命令行工具 [ezctl介绍](docs/setup/ezctl.md)
## 安装指南 ## 安装指南

View File

@ -0,0 +1,24 @@
## kubeasz-3.1.1 (Autumnal Equinox)
昼夜均寒暑平中秋祭月。kubeasz 3.1.1 小版本更新。
### 正式通过k8s一致性认证
kubeasz 用户可以确认集群各项功能符合预期既符合k8s设计标准
- v1.20 [已完成](https://github.com/cncf/k8s-conformance/pull/1326)
- v1.21 [已完成](https://github.com/cncf/k8s-conformance/pull/1398)
- v1.22 [进行中]
### 组件更新
- k8s: v1.22.2, v1.21.5, v.1.20.11, v1.19.15
- etcd: v3.5.0
- docker: 20.10.8
- calico: v3.19.2
- coredns: 1.8.4
- pause: 3.5
### 其他
- fix:增加/删除节点时ansible hosts文件更新错误

4
ezdown
View File

@ -14,8 +14,8 @@ set -o errexit
# default settings, can be overridden by cmd line options, see usage # default settings, can be overridden by cmd line options, see usage
DOCKER_VER=20.10.8 DOCKER_VER=20.10.8
KUBEASZ_VER=3.2.0 KUBEASZ_VER=3.1.1
K8S_BIN_VER=v1.22.1 K8S_BIN_VER=v1.22.2
EXT_BIN_VER=0.9.5 EXT_BIN_VER=0.9.5
SYS_PKG_VER=0.4.1 SYS_PKG_VER=0.4.1
HARBOR_VER=v2.1.3 HARBOR_VER=v2.1.3

View File

@ -23,7 +23,12 @@
- "{{ metricsscraper_offline }}" - "{{ metricsscraper_offline }}"
when: "item in image_info.stdout and CONTAINER_RUNTIME == 'containerd'" when: "item in image_info.stdout and CONTAINER_RUNTIME == 'containerd'"
- name: 创建 dashboard部署 - name: 准备 dashboard的部署文件
shell: "{{ base_dir }}/bin/kubectl apply -f {{ base_dir }}/roles/cluster-addon/templates/dashboard" template: src=dashboard/kubernetes-dashboard.yaml.j2 dest={{ cluster_dir }}/yml/kubernetes-dashboard.yaml
run_once: true
connection: local
- name: 创建 dashboard部署
shell: "{{ base_dir }}/bin/kubectl apply -f {{ cluster_dir }}/yml/kubernetes-dashboard.yaml"
run_once: true run_once: true
connection: local connection: local

View File

@ -14,7 +14,13 @@
shell: "{{ bin_dir }}/ctr -n=k8s.io images import /opt/kube/images/{{ metricsserver_offline }}" shell: "{{ bin_dir }}/ctr -n=k8s.io images import /opt/kube/images/{{ metricsserver_offline }}"
when: 'metricsserver_offline in image_info.stdout and CONTAINER_RUNTIME == "containerd"' when: 'metricsserver_offline in image_info.stdout and CONTAINER_RUNTIME == "containerd"'
- name: 创建 metrics-server部署 - name: 准备 metrics-server的部署文件
shell: "{{ base_dir }}/bin/kubectl apply -f {{ base_dir }}/roles/cluster-addon/templates/metrics-server" template: src=metrics-server/components.yaml.j2 dest={{ cluster_dir }}/yml/metrics-server.yaml
run_once: true
connection: local
- name: 创建 metrics-server部署
shell: "{{ base_dir }}/bin/kubectl apply -f {{ cluster_dir }}/yml/metrics-server.yaml"
run_once: true run_once: true
connection: local connection: local