helm解析单个模版文件

韵味老鸟 2024-07-11 11:04:47

helm解析单个模版文件

一:helm解析单个模版文件

helm template . --show-only templates/service.yaml --dry-run --debug

命令的参数位置要对,否则解析失败

命令解读,helm template 表示要解析模版

--show-only 表示只显示指定的文件,如templates/services.yaml

--dry-run 表示只测试,不进行最终的执行,模拟执行的过程

--debug 表示debug 模式,如果有异常,报错等会详细输出相关信息

#正确

helm template . --show-only templates/virtualservice.yaml --dry-run --debug

#错误

helm template . templates/virtualservice.yaml --show-only --dry-run --debug

路径不对,则会影响到输出解析的错误

helm template . --show-only -f templates/deployment.yaml --dry-run --debug

需要输出正常的路径,节点

0 阅读:0