easzlab / kubeasz

使用Ansible脚本安装K8S集群,介绍组件交互原理,方便直接,不受国内网络环境影响
https://github.com/easzlab/kubeasz
10.53k stars 3.53k forks source link

步骤./ezctl setup k8s-cluster1 04报错 #1415

Open BruceShi2006 opened 3 weeks ago

BruceShi2006 commented 3 weeks ago

What happened? 发生了什么问题?

TASK [kube-master : 创建 kubernetes 证书签名请求] ** fatal: [172.31.7.101]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: {{ SERVICE_CIDR.split('.')[0] }}.{{ SERVICE_CIDR.split('.')[1] }}.{{ SERVICE_CIDR.split('.')[2] }}.{{ SERVICE_CIDR.split('.')[3]|int + 1 }}: 'SERVICE_CIDR' is undefined"} fatal: [172.31.7.102]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: {{ SERVICE_CIDR.split('.')[0] }}.{{ SERVICE_CIDR.split('.')[1] }}.{{ SERVICE_CIDR.split('.')[2] }}.{{ SERVICE_CIDR.split('.')[3]|int + 1 }}: 'SERVICE_CIDR' is undefined"}

PLAY RECAP ***** 172.31.7.101 : ok=10 changed=3 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
172.31.7.102 : ok=10 changed=3 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

What did you expect to happen? 期望的结果是什么?

求助

How can we reproduce it (as minimally and precisely as possible)? 尽可能最小化、精确地描述如何复现问题

求助

Anything else we need to know? 其他需要说明的情况

求助

Kubernetes version k8s 版本

Kubeasz version

3.5.2

OS version 操作系统版本

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # Linux haproxy2 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux ```

Related plugins (CNI, CSI, ...) and versions (if applicable) 其他网络插件等需要说明的情况