Update ingress.yaml

Update Ingress for Helm section
This commit is contained in:
schlapzz 2022-09-12 11:44:07 +02:00 committed by GitHub
parent ee6ba6e287
commit 144d0abec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
{{- $fullName := include "simple-example.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
@ -33,9 +33,12 @@ spec:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: Prefix
backend:
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}