easzlab / kubeasz

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

master 添加无法指定端口,添加失败后,无法再次添加 #1355

Closed richzhu369 closed 8 months ago

richzhu369 commented 9 months ago

What happened? 发生了什么问题?

我在添加master后由于ssh端口不对添加失败,之后就无法再次添加了,运行del-master也不行 image

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

失败后应该不影响再次添加,或者运行del-master后可以再次添加

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

添加一台非22 ssh的端口

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

No response

Kubernetes version k8s 版本

1.29.0

Kubeasz version

3.6.3

OS version 操作系统版本

```console # On Linux: $ cat /etc/os-release # CentOS Linux release 7.9.2009 (Core) $ uname -a # Linux zy-jp-k9-pro-ops-k8s-master-back01 5.4.201-1.el7.elrepo.x86_64 #1 SMP Fri Jun 24 08:59:49 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux ```

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

richzhu369 commented 9 months ago

解决了,你的文档有问题,add-master的完整命令应该是:

dk ezctl add-master k9-backup 10.66.201.33 k8s_nodename='zy-xxx-master-xxx03'

后面要必须有 k8s_nodename=''

你的文档写的是 ezctl add-master test-k8s 192.168.1.12 k8s_nodename=master-03

https://github.com/easzlab/kubeasz/blob/master/docs/op/op-master.md

richzhu369 commented 9 months ago

即使添加master成功了,在clusters/hosts 中的命名还是不对,少了两个单引号 image

github-actions[bot] commented 8 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 8 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.