diff --git a/example/helm/prometheusalert/templates/ingress.yaml b/example/helm/prometheusalert/templates/ingress.yaml index eaf1ff98..ff9b67cf 100644 --- a/example/helm/prometheusalert/templates/ingress.yaml +++ b/example/helm/prometheusalert/templates/ingress.yaml @@ -1,7 +1,7 @@ {{- if .Values.ingress.enabled -}} {{- $fullName := include "prometheusalert.fullname" . -}} {{- $svcPort := .Values.service.port -}} -apiVersion: extensions/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: {{ $fullName }} @@ -29,9 +29,12 @@ spec: paths: {{- range .paths }} - path: {{ . }} + pathType: Prefix backend: - serviceName: {{ $fullName }} - servicePort: {{ $svcPort }} + service: + name: {{ $fullName }} + port: + number: {{ $svcPort }} {{- end }} {{- end }} {{- end }}