Skip to content

[Enhancement] 优化 K8s 集群接入引导:补充 Helm 安装指引与一键复制 #438

Description

@Zara1024

问题背景与现状

在控制台 Kubernetes 集群接入弹窗(/clusters 与 /kubernetes)中,点击创建接入后,弹窗仅展示了 helm upgrade --install ongrid-edge ... 应用安装命令。
在全新的 Linux 节点或精简容器主机上,通常并未预装 Helm CLI 工具。用户直接复制运行该命令时会报错 helm: command not found,导致集群纳管流程中断。

优化建议与方案

建议将弹窗中的执行引导明确拆分为两个步骤,并分别提供独立的一键复制操作:

  1. 安装Helm命令(执行一次):
    curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash

2.安装应用命令(执行一次):
helm upgrade --install ongrid-edge 'oci://helm.cnb.cool/ongridio/ongrid-edge' --version '0.17.4' --namespace ongrid-system --create-namespace ...
为每张命令卡片配备独立的一键复制按钮及复制成功状态反馈。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions