【发布时间】:2022-02-23 22:08:48
【问题描述】:
我想为我的项目设置通配符子域,使用 k8s、nginx 入口控制器、helm chart:
在ingress.yaml 文件中:
...
rules:
- host: {{ .Values.ingress.host }}
...
在values.yaml 文件中,我将主机example.local 更改为*.example.local:
...
ingress:
enabled: true
host: "*.example.local"
...
然后,当我使用 helm chart 安装图表时:
Error: YAML parse error on example/templates/ingress.yaml: error converting YAML to JSON: yaml: line 15: did not find expected alphabetic or numeric character
我该如何解决?
感谢您的支持。
【问题讨论】:
标签: kubernetes wildcard nginx-ingress helm3