gpt4 book ai didi

kubernetes-helm - helm template --debug 或 helm install --dry-run --debug ,哪个最好?

转载 作者:行者123 更新时间:2023-12-04 12:39:21 24 4
gpt4 key购买 nike

我想知道helm template --debug之间哪个最好
helm install --dry-run --debug
谢谢

最佳答案

两个命令的区别在于helm install --dry-run会将东西发送到 Kubernetes 集群,但是 helm template惯于。

我的一般经验是,调试复杂的 Go 模板可能很棘手,如果我遇到 YAML 问题(尤其是如果我在浏览器选项卡中有 Kubernetes API 文档),helm template输出足以满足我的需求,而且速度更快,依赖性更少。所以我经常使用helm template .

相比之下,当我获得正确的 Go 模板逻辑和 YAML 格式时,我通常已经准备好进行实际的测试部署;所以当我 helm install几乎从不与 --dry-run .如果我弄错了对象布局,它仍然会提示,如果它是正确的,那么我准备开始向服务发送请求。

关于kubernetes-helm - helm template --debug 或 helm install --dry-run --debug ,哪个最好?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61069841/

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