Add external ingress

This commit is contained in:
2023-09-25 21:55:59 +08:00
parent 0a36f63e03
commit 66e66ae190
2 changed files with 9 additions and 1 deletions
+7
View File
@@ -34,8 +34,15 @@ spec:
{{- range .paths }}
- path: {{ . }}
backend:
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- else -}}
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}