kubekey icon indicating copy to clipboard operation
kubekey copied to clipboard

add nodes should consider etcd-servers in kube-apiserver.yaml

Open qyz87 opened this issue 4 months ago • 1 comments

What is version of KubeKey has the issue?

release 3.0.6

What is your os environment?

ubuntu18.4

KubeKey config file


A clear and concise description of what happend.

step1 deploy k8s (one master node ,one etcd node ) apiVersion: kubekey.kubesphere.io/v1alpha2 kind: Cluster metadata: name: sample spec: ----- roleGroups: control-plane: - master1 etcd: - master1 registry: - master1 worker: - master1

step2 add k8s nodes and etcd nodes apiVersion: kubekey.kubesphere.io/v1alpha2 kind: Cluster metadata: name: sample spec: ----- roleGroups: control-plane: - master1 - master2 - master3 etcd: - master1 - master2 - master3 registry: - master1 worker: - master1 - master2 - master3

after add nodes, etcd cluster expand to three nodes, but etcd-servers in kube-apiserver.yaml still is one endpoints( - --etcd-servers=https://192.168.122.147:2379 )

Relevant log output


Additional information

No response

qyz87 avatar Aug 27 '25 08:08 qyz87

Version 3.x of kk does not support etcd scaling, which will be available in version 4.x. refer:https://github.com/kubesphere/kubekey/blob/feature-gitops/builtin/core/roles/etcd/tasks/expansion.yaml

redscholar avatar Sep 03 '25 02:09 redscholar