整合无需重建的自定义更改#

注意

本节假设自定义更改在 yaml 文件中进行。例如:基于本地下载的所选 helm chart 的 values.yaml 文件的 my_override_values.yaml。以下步骤描述了通过升级已部署的 helm chart 来整合更改。

  1. 将自定义更改保存到您的 my_override_values.yaml 文件。

  2. 在您的部署脚本的 config-template.yml 中,将本地保存的 my_override_values.yaml 文件的位置指定为 spec > app > configs > app_settings > helm_chart > local > user_value_override_files 的值。请注意,要提供的 helm chart 路径是本地下载/保存的 helm chart 的路径。有关部署脚本的选项,请参阅 部署。下面提供了 config-template.yaml 中相关部分的片段。

app:
  configs:
    app_settings:
      # k8s_namespace:   '<replace-with-k8s-namespace-for-app-chart-to-deploy-defaults-to-app>'
      # helm_chart:
        # local:
          #  enable: true
          #  path: '<absolute-path-of-helm-chart-present-locally>'
          #  release_name:   '<replace-with-release-name-for-helm-deploy-defaults-to-'tokkio-app'  >'
          #  user_value_override_files:   ['list-of-absolute-path-of-value-override-files']
  1. 运行部署脚本以反映更改。在下面显示的命令中使用 config-template 的正确路径和名称

    ./envbuild.sh install --component app --config-file ./config-template.yml