From e6fe19d7126dd7161f0a5c66a4f22c57e50d2601 Mon Sep 17 00:00:00 2001 From: ysicing Date: Tue, 26 Nov 2024 14:26:42 +0800 Subject: [PATCH] * feat: align Ingress configuration with updated API standards #462 --- example/helm/prometheusalert/templates/ingress.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 }}