diff --git a/charts/ratel/example_values/ingress/ingress-alb-no_host.yaml b/charts/ratel/example_values/ingress/ingress-alb-no_host.yaml index c2b239621..bde1834c5 100644 --- a/charts/ratel/example_values/ingress/ingress-alb-no_host.yaml +++ b/charts/ratel/example_values/ingress/ingress-alb-no_host.yaml @@ -1,8 +1,9 @@ # aws-load-balancer-controller # * https://github.com/kubernetes-sigs/aws-load-balancer-controller -# NOTE: -# * shared ALB with group name of 'dgraph' will be used. +# NOTE: +# * shared ALB with group name of 'dgraph' will be used. # This avoids provisioning multiple ALBs +ingress: enabled: true className: alb annotations: @@ -13,4 +14,3 @@ - paths: - path: /* pathType: ImplementationSpecific - host: ratel.example.com diff --git a/charts/ratel/example_values/ingress/ingress-alb-with_host.yaml b/charts/ratel/example_values/ingress/ingress-alb-with_host.yaml index e514ea970..a82e94a5b 100644 --- a/charts/ratel/example_values/ingress/ingress-alb-with_host.yaml +++ b/charts/ratel/example_values/ingress/ingress-alb-with_host.yaml @@ -5,6 +5,7 @@ ingress: alb.ingress.kubernetes.io/scheme: internet-facing alb.ingress.kubernetes.io/target-type: ip hosts: - - paths: - - path: /* - pathType: ImplementationSpecific + - host: ratel.example.com + paths: + - path: / + pathType: Prefix diff --git a/charts/ratel/templates/ingress.yaml b/charts/ratel/templates/ingress.yaml index 8562fa821..804d4b289 100644 --- a/charts/ratel/templates/ingress.yaml +++ b/charts/ratel/templates/ingress.yaml @@ -39,7 +39,12 @@ spec: {{- end }} rules: {{- range .Values.ingress.hosts }} + {{- if .host }} + - host: {{ .host | quote }} + http: + {{- else }} - http: + {{- end }} paths: {{- range .paths }} - path: {{ .path }} @@ -57,8 +62,5 @@ spec: servicePort: {{ $svcPort }} {{- end }} {{- end }} - {{- if .host }} - host: {{ .host | quote }} - {{- end }} {{- end }} {{- end }}