From 1a1b4e50e13300138edca30cb19ae2d29977d866 Mon Sep 17 00:00:00 2001 From: brandon Date: Tue, 13 Apr 2021 12:58:24 -0400 Subject: [PATCH] beta1 --- helm-guestbook/templates/ingress.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/helm-guestbook/templates/ingress.yaml b/helm-guestbook/templates/ingress.yaml index 561afe9..6e233c7 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/v1 +apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: {{ template "helm-guestbook.fullname" . }} @@ -13,12 +13,9 @@ spec: - host: {{ .Values.ingress.host }} http: paths: - - pathType: Prefix - path: {{ .Values.ingress.path }} + - path: {{ .Values.ingress.path }} backend: # serviceName must match canary.stableService - service: - name: {{ template "helm-guestbook.fullname" . }} - port: - number: {{ .Values.service.port }} -{{- end }} \ No newline at end of file + serviceName: {{ template "helm-guestbook.fullname" . }} + servicePort: {{ .Values.service.port }} +{{- end }}