gpt4 book ai didi

kubernetes - Kubernetes + Helm-仅在新版本/更改时重新启动Pod

转载 作者:行者123 更新时间:2023-12-02 11:52:40 24 4
gpt4 key购买 nike

每当我运行基本的deploy命令时,一切都将重新部署到我的环境中。是否有任何方法告诉Helm仅在进行更改后才应用这些东西,或者这仅仅是它的工作方式?
我在跑:

helm upgrade --atomic MyInstall . -f CustomEnvironmentData.yaml
我在 Helm Upgrade documentation中没有看到任何表明该功能的东西。
除非必须,否则我不想弹跳整个环境。

最佳答案

您可能应该使用helm diff upgrade https://github.com/databus23/helm-diff

$ helm diff upgrade - h
Show a diff explaining what a helm upgrade would change.

This fetches the currently deployed version of a release
and compares it to a chart plus values.
This can be used visualize what changes a helm upgrade will
perform.

Usage:
diff upgrade[flags] [RELEASE] [CHART]

Examples:
helm diff upgrade my-release stable / postgresql--values values.yaml

Flags:
-h, --help help for upgrade
--detailed - exitcode return a non - zero exit code when there are changes
--post - renderer string the path to an executable to be used for post rendering. If it exists in $PATH, the binary will be used, otherwise it will try to look for the executable at the given path
--reset - values reset the values to the ones built into the chart and merge in any new values
--reuse - values reuse the last release's values and merge in any new values
--set stringArray set values on the command line(can specify multiple or separate values with commas: key1 = val1, key2 = val2)
--suppress stringArray allows suppression of the values listed in the diff output
- q, --suppress - secrets suppress secrets in the output
- f, --values valueFiles specify values in a YAML file(can specify multiple)(default[])
--version string specify the exact chart version to use.If this is not specified, the latest version is used

Global Flags:
--no - color remove colors from the output

关于kubernetes - Kubernetes + Helm-仅在新版本/更改时重新启动Pod,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63745764/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com