apiVersion: v1
kind: ConfigMap
metadata:
name: nginx
namespace: nginx-ingress
data:
nginx.ingress.tmpl: {{ (tpl (.Files.Get "nginx.ingress.tmpl") . | quote ) }}
如何在helm中读取模板文件?
我收到错误
at〈tpl(.Files.Get“nginx.ingress.tmpl”).〉:调用tpl时出错:在执行“# configuration for”的tpl函数时出错
1条答案
按热度按时间svujldwt1#
试试这个:
https://helm.sh/docs/chart_template_guide/accessing_files/