什么是将helm子图服务名称引用到我的入口控制器中的最佳方法,该控制器将位于父图表中
values.yaml
---
ingress:
paths:
- serviceName: app-1
path: /app-1/*
port: 8080
- serviceName: app-2
path: /app-2/*
port: 8080
ingress.yaml
---
{{- range .Values.ingress.paths }}
- path: {{ .path }}
backend:
{{- $subchart := .serviceName -}}
serviceName: {{- include "$subchart.fullname" .}}
servicePort: {{ .port }}
{{- end }}
Run Code Online (Sandbox Code Playgroud)
模板:没有与模板"gotpl"相关联的模板"$ subchart.fullname"