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 23724f2 commit e6fe19dCopy full SHA for e6fe19d
example/helm/prometheusalert/templates/ingress.yaml
@@ -1,7 +1,7 @@
1
{{- if .Values.ingress.enabled -}}
2
{{- $fullName := include "prometheusalert.fullname" . -}}
3
{{- $svcPort := .Values.service.port -}}
4
-apiVersion: extensions/v1beta1
+apiVersion: networking.k8s.io/v1
5
kind: Ingress
6
metadata:
7
name: {{ $fullName }}
@@ -29,9 +29,12 @@ spec:
29
paths:
30
{{- range .paths }}
31
- path: {{ . }}
32
+ pathType: Prefix
33
backend:
- serviceName: {{ $fullName }}
34
- servicePort: {{ $svcPort }}
+ service:
35
+ name: {{ $fullName }}
36
+ port:
37
+ number: {{ $svcPort }}
38
{{- end }}
39
40
0 commit comments