Updated documentation

This commit is contained in:
Mart van Santen 2022-04-01 14:31:03 +08:00
parent 4b8eba9b92
commit e7d3ddb9b0
3 changed files with 25 additions and 23 deletions

View file

@ -1,6 +1,5 @@
{{- if .Values.ingress.enabled -}}
# apiVersion: {{ template "common.capabilities.ingress.apiVersion" . }}
apiVersion: networking.k8s.io/v1
apiVersion: {{ template "common.capabilities.ingress.apiVersion" . }}
kind: Ingress
metadata:
name: {{ template "common.names.fullname" . }}
@ -63,20 +62,18 @@ spec:
number: 80
{{- end }}
{{- range .Values.ingress.extraHosts }}
# In the event of "extraHosts", kratos is not proxied. Due the redirects,
# and single domain support of kratos/hydra. it is not feasable to support
# multiple hostnames. Same is true for the /web/ login frontend
- host: {{ .name }}
http:
paths:
- path: ({{ default "/" .path }}.*)
- path: {{ default "/" .path }}(.*)
{{- if eq "true" (include "common.ingress.supportsPathType" $) }}
pathType: {{ default "ImplementationSpecific" .pathType }}
{{- end }}
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "dashboard.serviceName" $) "servicePort" "dashboard-http" "context" $) | nindent 14 }}
- path: ({{ default "/" .path }}api/v1.*)
{{- if eq "true" (include "common.ingress.supportsPathType" $) }}
pathType: {{ default "ImplementationSpecific" .pathType }}
{{- end }}
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "backend.serviceName" .) "servicePort" "backend-http" "context" $) | nindent 14 }}
- path: ({{ default "/" .path }}web.*)
- path: {{ default "/" .path }}(api/v1.*)
{{- if eq "true" (include "common.ingress.supportsPathType" $) }}
pathType: {{ default "ImplementationSpecific" .pathType }}
{{- end }}