kubekey icon indicating copy to clipboard operation
kubekey copied to clipboard

功能问题-添加节点时未自动初始化环境

Open zhuyifeiRuichuang opened this issue 3 months ago • 1 comments

Your current KubeKey version

root@master1:/opt# ./kk version kk version: &version.Info{Major:"3", Minor:"1", GitVersion:"v3.1.11", GitCommit:"f9d473060ec34cd8ffe5a87f2eceb1dead397f5c", GitTreeState:"clean", BuildDate:"2025-08-18T17:04:46Z", GoVersion:"go1.23.2", Compiler:"gc", Platform:"linux/amd64"}

Describe this feature

现状 离线部署环境。在 ./kk add node时,未对全新节点进行环境初始化,部分依赖软件的旧版已在软件仓库删除不提供,例如docker,只能使用新版,导致新增节点与现环境软件版本无法对齐一致。

Describe the solution you'd like

期望 离线部署环境。在 ./kk add node时,可以像 ./kk create cluster 那样,对全新的节点,使用离线制品内的软件,对节点进行环境初始化,确保节点的软件环境一致。

Additional information

No response

zhuyifeiRuichuang avatar Sep 02 '25 06:09 zhuyifeiRuichuang

在4.x中,安装的软件分为两部分:

  1. helm,docker。这类二进制软件包。会完全安装config.yaml中定义的版本。 参考:https://github.com/kubesphere/kubekey/blob/feature-gitops/builtin/core/defaults/config/v1.33.yaml

  2. deb或rpm包,包含:socat conntrack ipset ebtables chrony ipvsadm。在离线环境中,通过iso镜像包安装。 iso镜像制作参考:https://github.com/kubesphere/kubekey/issues/2601 部署代码:https://github.com/kubesphere/kubekey/blob/feature-gitops/builtin/core/roles/native/repository/tasks/install_package.yaml

redscholar avatar Sep 03 '25 02:09 redscholar