diff --git a/helm/oncall/templates/ingress-regular.yaml b/helm/oncall/templates/ingress-regular.yaml index 6b07cf52..caa9e151 100644 --- a/helm/oncall/templates/ingress-regular.yaml +++ b/helm/oncall/templates/ingress-regular.yaml @@ -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: diff --git a/helm/oncall/values.yaml b/helm/oncall/values.yaml index 15b46d47..95ab565e 100644 --- a/helm/oncall/values.yaml +++ b/helm/oncall/values.yaml @@ -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: