From 4c4248f7301d73137c2756d5584d1ca3c5e7911f Mon Sep 17 00:00:00 2001 From: brandon Date: Tue, 13 Apr 2021 12:40:05 -0400 Subject: [PATCH] ing --- helm-guestbook/templates/ingress.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/helm-guestbook/templates/ingress.yaml b/helm-guestbook/templates/ingress.yaml index 97247e9..561afe9 100644 --- a/helm-guestbook/templates/ingress.yaml +++ b/helm-guestbook/templates/ingress.yaml @@ -1,5 +1,5 @@ {{- if .Values.ingress.enabled -}} -apiVersion: networking.k8s.io/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: {{ template "helm-guestbook.fullname" . }} @@ -13,9 +13,12 @@ spec: - host: {{ .Values.ingress.host }} http: paths: - - path: {{ .Values.ingress.path }} + - pathType: Prefix + path: {{ .Values.ingress.path }} backend: # serviceName must match canary.stableService - serviceName: {{ template "helm-guestbook.fullname" . }} - servicePort: {{ .Values.service.port }} + service: + name: {{ template "helm-guestbook.fullname" . }} + port: + number: {{ .Values.service.port }} {{- end }} \ No newline at end of file