Closed sunyakun closed 1 year ago
Thanks for the feedback. When adding the agent node one by one, the K3d agent name is duplicated when stitching the K3d Node name.
As a workaround, please add or join multiple worker nodes at one time. We will fix this issue in the next version.
By the way, if the join command fails to execute, autok3s will attempt to perform a rollback, including deleting the kubectl context config. I believe this behavior is unexpected.
Yes, rollback with failure won't remove the kubectl context config when joining nodes. Will fix this issue too.
I would be happy to submit a PR to fix this bug. You can assign this issue to me.
Sure. Thanks
Describe the bug
k3d 集群初次创建时如果只有一个 master 节点,那么使用 autok3s join 命令则最多只能添加一个 worker 节点,当超过一个 worker 节点后再次执行 autok3s join 则会失败
To reproduce
使用 autok3s 创建一个只有一个 master 节点的 k3d 集群
向 k3d 集群添加一个 worker 节点
继续向集群添加 worker 节点
Expected behavior
期望命令全部执行成功,最终 k3d 集群有一个 master 节点和两个 worker 节点
Screenshots
Environments (please complete the following information):