From 597dbce42c69acd7ea97be8ec833af45e56a686c Mon Sep 17 00:00:00 2001 From: Marius Ensrud Date: Thu, 30 Sep 2021 23:15:21 +0200 Subject: [PATCH] fix ingress --- charts/wordpress/5.8/templates/ingress.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/charts/wordpress/5.8/templates/ingress.yaml b/charts/wordpress/5.8/templates/ingress.yaml index 7c22195..063ecbe 100644 --- a/charts/wordpress/5.8/templates/ingress.yaml +++ b/charts/wordpress/5.8/templates/ingress.yaml @@ -1,11 +1,7 @@ {{- if .Values.ingress.enabled -}} {{- $fullName := include "wordpress.fullname" . -}} {{- $svcPort := .Values.service.port -}} -{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} apiVersion: networking.k8s.io/v1 -{{- else -}} -apiVersion: extensions/v1beta1 -{{- end }} kind: Ingress metadata: name: {{ $fullName }} @@ -34,8 +30,9 @@ spec: {{- range .paths }} - path: {{ .path }} backend: - serviceName: {{ $fullName }} - servicePort: {{ $svcPort }} + name: {{ $fullName }} + port: + number: {{ $svcPort }} {{- end }} {{- end }} {{- end }}