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 }}