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

@ -57,7 +57,7 @@ spec:
- name: dashboard
securityContext: {{- toYaml .Values.dashboard.containerSecurityContext | nindent 12 }}
image: {{ template "dashboard.image" . }}
imagePullPolicy: {{ .Values.dashboard.image.pullPolicy | quote }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
{{- if .Values.dashboard.command }}
command: {{- include "common.tplvalues.render" (dict "value" .Values.dashboard.command "context" $) | nindent 12 }}
{{- end }}
@ -119,7 +119,7 @@ spec:
- name: backend
securityContext: {{- toYaml .Values.backend.containerSecurityContext | nindent 12 }}
image: {{ template "backend.image" . }}
imagePullPolicy: {{ .Values.backend.image.pullPolicy | quote }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
{{- if .Values.backend.command }}
command: {{- include "common.tplvalues.render" (dict "value" .Values.backend.command "context" $) | nindent 12 }}
{{- end }}

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 }}