First attempt including login app in dashboard helmchart
This commit is contained in:
parent
b16ed99b71
commit
bb1aebb706
4 changed files with 21 additions and 13 deletions
|
@ -17,7 +17,11 @@ data:
|
|||
HYDRA_AUTHORIZATION_BASE_URL: {{ .Values.backend.oidc.authorizationBaseUrl }}
|
||||
TOKEN_URL: {{ .Values.backend.oidc.tokenUrl }}
|
||||
HYDRA_URL: {{ .Values.backend.oidc.baseUrl }}
|
||||
|
||||
KRATOS_PUBLIC_URL: {{ .Values.backend.kratos.publicUrl }}
|
||||
KRATOS_ADMIN_URL: {{ .Values.backend.kratos.adminUrl }}
|
||||
HYDRA_ADMIN_URL: {{ .Values.backend.hydra.adminUrl }}
|
||||
PUBLIC_URL: {{ .Values.backend.publicUrl }}
|
||||
DATABASE_URL: {{ .Values.backend.databaseUrl }}
|
||||
# {{- if .Values.backend.smtp.enabled }}
|
||||
# DASHBOARD_BACKEND_SMTP_HOST: {{ .Values.backend.smtp.host | quote }}
|
||||
# DASHBOARD_BACKEND_SMTP_PORT: {{ .Values.backend.smtp.port | quote }}
|
||||
|
|
|
@ -57,7 +57,7 @@ spec:
|
|||
- name: dashboard
|
||||
securityContext: {{- toYaml .Values.dashboard.containerSecurityContext | nindent 12 }}
|
||||
image: {{ template "dashboard.image" . }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
|
||||
imagePullPolicy: {{ .Values.dashboard.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.image.pullPolicy | quote }}
|
||||
imagePullPolicy: {{ .Values.backend.image.pullPolicy | quote }}
|
||||
{{- if .Values.backend.command }}
|
||||
command: {{- include "common.tplvalues.render" (dict "value" .Values.backend.command "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{{- if .Values.ingress.enabled -}}
|
||||
apiVersion: {{ template "common.capabilities.ingress.apiVersion" . }}
|
||||
# apiVersion: {{ template "common.capabilities.ingress.apiVersion" . }}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ template "common.names.fullname" . }}
|
||||
|
@ -37,27 +38,29 @@ spec:
|
|||
- host: {{ .Values.ingress.hostname }}
|
||||
http:
|
||||
paths:
|
||||
- path: ({{ .Values.ingress.path }}.*)
|
||||
- path: {{ .Values.ingress.path }}(.*)
|
||||
{{- if eq "true" (include "common.ingress.supportsPathType" .) }}
|
||||
pathType: {{ .Values.ingress.pathType }}
|
||||
{{- end }}
|
||||
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "dashboard.serviceName" .) "servicePort" "dashboard-http" "context" $) | nindent 14 }}
|
||||
# Forward API calls to the back-end container
|
||||
- path: ({{ .Values.ingress.path }}api/v1.*)
|
||||
- path: {{ .Values.ingress.path }}(api/v1.*)
|
||||
{{- if eq "true" (include "common.ingress.supportsPathType" .) }}
|
||||
pathType: {{ .Values.ingress.pathType }}
|
||||
{{- end }}
|
||||
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "backend.serviceName" .) "servicePort" "backend-http" "context" $) | nindent 14 }}
|
||||
- path: ({{ .Values.ingress.path }}web.*)
|
||||
- path: {{ .Values.ingress.path }}(web.*)
|
||||
{{- if eq "true" (include "common.ingress.supportsPathType" .) }}
|
||||
pathType: {{ .Values.ingress.pathType }}
|
||||
{{- end }}
|
||||
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "backend.serviceName" .) "servicePort" "backend-http" "context" $) | nindent 14 }}
|
||||
- path: {{ .Values.ingress.path }}kratos/(.*)
|
||||
{{- if eq "true" (include "common.ingress.supportsPathType" .) }}
|
||||
pathType: {{ .Values.ingress.pathType }}
|
||||
{{- end }}
|
||||
backend: {{- include "common.ingress.backend" (dict "serviceName" "single-sign-on-kratos-public" "servicePort" "80" "context" $) | nindent 14 }}
|
||||
backend:
|
||||
service:
|
||||
name: single-sign-on-kratos-public
|
||||
port:
|
||||
number: 80
|
||||
{{- end }}
|
||||
{{- range .Values.ingress.extraHosts }}
|
||||
- host: {{ .name }}
|
||||
|
|
|
@ -42,6 +42,7 @@ commonAnnotations: {}
|
|||
##
|
||||
image:
|
||||
imagePullSecrets: []
|
||||
pullPolicy: Always
|
||||
|
||||
## Dashboard configuration parameters
|
||||
## ref: https://open.greenhost.net/stackspin/dashboard
|
||||
|
@ -232,12 +233,12 @@ backend:
|
|||
image:
|
||||
registry: open.greenhost.net:4567
|
||||
repository: stackspin/dashboard-backend/dashboard-backend
|
||||
tag: 0-1-4
|
||||
tag: 19-integrate-flask-sso-panel-into-dashboard-flask-backend
|
||||
## Specify a imagePullPolicy
|
||||
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
||||
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
||||
##
|
||||
pullPolicy: IfNotPresent
|
||||
pullPolicy: Always
|
||||
## Optionally specify an array of imagePullSecrets.
|
||||
## Secrets must be manually created in the namespace.
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
||||
|
@ -646,7 +647,7 @@ ingress:
|
|||
path: /
|
||||
## @param ingress.pathType Ingress path type
|
||||
##
|
||||
pathType: ImplementationSpecific
|
||||
pathType: Prefix
|
||||
## @param ingress.annotations Ingress annotations done as key:value pairs
|
||||
## For a full list of possible ingress annotations, please see
|
||||
## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md
|
||||
|
|
Loading…
Reference in a new issue