Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions charts/ratel/example_values/ingress/ingress-alb-no_host.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -13,4 +14,3 @@
- paths:
- path: /*
pathType: ImplementationSpecific
host: ratel.example.com
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 5 additions & 3 deletions charts/ratel/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -57,8 +62,5 @@ spec:
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- if .host }}
host: {{ .host | quote }}
{{- end }}
{{- end }}
{{- end }}