We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42cf3c9 commit c745a9bCopy full SHA for c745a9b
src/helm-chart/templates/ingress.yaml
@@ -1,11 +1,7 @@
1
{{- if .Values.ingress.enabled -}}
2
{{- $fullName := include "helm-chart.fullname" . -}}
3
{{- $svcPort := .Values.service.port -}}
4
-{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
5
-apiVersion: networking.k8s.io/v1beta1
6
-{{- else -}}
7
-apiVersion: extensions/v1beta1
8
-{{- end }}
+apiVersion: networking.k8s.io/v1
9
kind: Ingress
10
metadata:
11
name: {{ $fullName }}
@@ -33,9 +29,12 @@ spec:
33
29
paths:
34
30
{{- range .paths }}
35
31
- path: {{ . }}
32
+ pathType: Prefix
36
backend:
37
- serviceName: {{ $fullName }}
38
- servicePort: {{ $svcPort }}
+ service:
+ name: {{ $fullName }}
+ port:
+ number: {{ $svcPort }}
39
{{- end }}
40
41
0 commit comments