I want to setting wildcard subdomain for my project, use k8s, nginx ingress controller, helm chart:
in ingress.yaml
file:
...
rules:
- host: {{ .Values.ingress.host }}
...
in values.yaml
file, i change host example.local
to *.example.local
:
...
ingress:
enabled: true
host: "*.example.local"
...
then, when i install chart using 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
How can i fix it?
Thank for your support.
CodePudding user response:
In your ingress.yaml
put quotes around the host key.
host: "{{ .Values.ingress.host }}"
CodePudding user response:
ingress: enabled: true host: "*.example.local"
you may need to use "---" instead of