Allow chart user to add extra ingress paths
This supports adding paths to the oncall host so the ingress can be configured to work with annotation-based ingress controllers (for example, the ALB ingress controller). By default no extra paths are added, and this change should be backwards compatible.
This commit is contained in:
parent
3f56b8ceac
commit
2be7bc7cb2
2 changed files with 18 additions and 0 deletions
|
|
@ -31,6 +31,9 @@ spec:
|
|||
- host: {{ .Values.base_url | quote }}
|
||||
http:
|
||||
paths:
|
||||
{{- if .Values.ingress.extraPaths }}
|
||||
{{ toYaml .Values.ingress.extraPaths | indent 6}}
|
||||
{{- end }}
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
|
|
|
|||
|
|
@ -58,6 +58,21 @@ ingress:
|
|||
- hosts:
|
||||
- "{{ .Values.base_url }}"
|
||||
secretName: certificate-tls
|
||||
# Extra paths to prepend to the host configuration. If using something
|
||||
# like an ALB ingress controller, you may want to configure SSL redirects
|
||||
extraPaths: []
|
||||
# - path: /*
|
||||
# backend:
|
||||
# serviceName: ssl-redirect
|
||||
# servicePort: use-annotation
|
||||
## Or for k8s > 1.19
|
||||
# - path: /*
|
||||
# pathType: Prefix
|
||||
# backend:
|
||||
# service:
|
||||
# name: ssl-redirect
|
||||
# port:
|
||||
# name: use-annotation
|
||||
|
||||
# Whether to install ingress controller
|
||||
ingress-nginx:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue