Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hgctl install/upgrade 子命令优化 #570

Open
3 of 4 tasks
2456868764 opened this issue Oct 7, 2023 · 0 comments · May be fixed by #824
Open
3 of 4 tasks

hgctl install/upgrade 子命令优化 #570

2456868764 opened this issue Oct 7, 2023 · 0 comments · May be fixed by #824

Comments

@2456868764
Copy link
Collaborator

2456868764 commented Oct 7, 2023

Why do you need it?

  1. 通过 higress upgrade 升级时不用再指定 profile参数,可以复用 install 时候指定的参数, 方便用户快速升级higress
  2. 通过helm安装higress后,可以通过higress upgrade 平滑来处理升级安装

How could it be?

  • 在安装阶段完成后,把安装过程配置参数复制一份到 ~/.hgctl/profiles/install.yaml , 升级从 ~/.hgctl/profiles/install.yaml 读取profile配置

  • 如果helm 安装有 values.yaml 参数文件,可以手动传入values.yaml 文件 ,支持 -f 参数

     ```
     hgctl install/upgrade --set profile=k8s -f values.yaml
     ```
    
  • 安装完成后profile 保存位置调整 : 如果在k8s下安装, 保存在 k8s configmap 下, 本地docker安装还是保存在 ~/.hgctl/profiles/目录下, 当升级时候(hgctl upgrade ) 聚合列出本地 ~/.hgctl/profiles 和 k8s configmap 所有profile,如果有多个 profiles 让用户选择升级哪个profiles。

  • 升级时通过 helm 命令 读取到 helm release 信息,自动转换成 profile, 参数支持 --from-helm

      ```
      hgctl upgrade --from-helm
      ```
    

Other related information

#229

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants