我想知道舵图的一些默认值。
例如,我想知道 stable/jenkins 的 .Values.master.tag 。有办法得到这个吗?
现在,我认为我这样做了helm pull stable/jenkins,然后解压缩 tar 并从 value.yaml 文件中查找。
谢谢,
尝试这个:
helm show values stable/jenkins | yq '.master.tag'
Run Code Online (Sandbox Code Playgroud)
PS:不要使用过时的版本:
helm repo update
helm show values jenkins/jenkins | yq '.master.tag'
Run Code Online (Sandbox Code Playgroud)
我只能通过安装dry-run然后grep获取值来想到解决方法。
例如
helm install --dry-run jenkins_temp stable/jenkins | grep value_name
Run Code Online (Sandbox Code Playgroud)
来自文档
当您想测试模板渲染但不实际安装任何东西时,可以使用
helm install --debug --dry-run ./mychart. 这将渲染模板。但它不会安装图表,而是将渲染的模板返回给您,以便您可以看到输出
或者您可以将fetch图表作为 tar 文件。
helm fetch stable/jenkins --untar
less ./jenkins/values.yaml
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
13297 次 |
| 最近记录: |