我想使用 k8s、nginx 入口控制器、helm 图表为我的项目设置通配符子域:
在ingress.yaml文件中:
...
rules:
- host: {{ .Values.ingress.host }}
...
Run Code Online (Sandbox Code Playgroud)
在values.yaml文件中,我将主机更改example.local为*.example.local:
...
ingress:
enabled: true
host: "*.example.local"
...
Run Code Online (Sandbox Code Playgroud)
然后,当我使用 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
Run Code Online (Sandbox Code Playgroud)
我该如何修复它?
感谢您的支持。