From 9c0cefa64dd24f5ae81f09663db9110b70bb25fa Mon Sep 17 00:00:00 2001 From: Mika Riekkinen Date: Wed, 1 Mar 2023 09:39:00 +0200 Subject: [PATCH] Fixed ingress for v1 --- Chart.yaml | 4 ++-- templates/alb-ingress.yaml | 14 ++++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index ab76d87..9bbe90c 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v1 -appVersion: "0.2.0" +appVersion: "0.2.1" description: A Helm chart for deploying microservices name: cxcloud-deployment-chart -version: 0.2.0 +version: 0.2.1 diff --git a/templates/alb-ingress.yaml b/templates/alb-ingress.yaml index 896510c..ad83e7c 100644 --- a/templates/alb-ingress.yaml +++ b/templates/alb-ingress.yaml @@ -48,14 +48,20 @@ spec: paths: {{- if .Values.awsLbController.redirectToHTTPSPort }} - path: /* + pathType: Prefix backend: - serviceName: redirect-to-https - servicePort: use-annotation + service: + name: redirect-to-https + port: + name: use-annotation {{- end }} - path: {{ .Values.awsLbController.path }} + pathType: Prefix backend: - serviceName: {{ $name }} - servicePort: {{ .Values.service.ports.http.port }} + service: + name: {{ $name }} + port: + number: {{ .Values.service.ports.http.port }} {{- if .Values.awsLbController.host }} host: {{ .Values.awsLbController.host | quote }} {{- end }}