Skip to content
Snippets Groups Projects
Commit e7d3ddb9 authored by Mart van Santen's avatar Mart van Santen
Browse files

Updated documentation

parent 4b8eba9b
No related branches found
No related tags found
1 merge request!23Resolve "Add web and kratos paths in nginx configuration"
Pipeline #13095 passed with stages
in 2 minutes and 49 seconds
......@@ -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 }}
......
{{- 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 }}
......
......@@ -39,9 +39,20 @@ commonAnnotations: {}
## @section Stackspin parameters
## @param imagePullSecrets Specify docker-registry secret names as an array
## @param imagePullPolicy Policy on pulling images on container start
##
image:
imagePullSecrets: []
## 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
##
## Same policy for all containers is used.
##
# TODO: Set to Always for developoment purposes, should be reverted to
# 'IfNotPresent'
# pullPolicy: IfNotPresent
pullPolicy: Always
## Dashboard configuration parameters
......@@ -61,11 +72,6 @@ dashboard:
registry: open.greenhost.net:4567
repository: stackspin/dashboard/dashboard
tag: 0-1-6
## 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
## 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/
......@@ -226,7 +232,6 @@ backend:
## @param image.registry Stackspin image registry
## @param image.repository Stackspin image repository
## @param image.tag Stackspin image tag
## @param image.pullPolicy Stackspin image pull policy
## @param image.pullSecrets Stackspin image pull secrets
## @param image.debug Specify if debug logs should be enabled
##
......@@ -234,11 +239,6 @@ backend:
registry: open.greenhost.net:4567
repository: stackspin/dashboard-backend/dashboard-backend
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: 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/
......@@ -257,12 +257,17 @@ backend:
authorizationBaseUrl: https://sso.stackspin.example.org/oauth2/auth
tokenUrl: https://sso.stackspin.example.org/oauth2/token
# Where to find the Kratos ADMIN and PUBLIC url
kratos:
publicUrl: https://sso.stackspin.example.org/kratos
adminUrl: http://single-sign-on-kratos-admin:80
# Where to find the Hydra ADMIN url
hydra:
adminUrl: http://single-sign-on-hydra-admin:4445
publicUrl: https://sso.stackspin.example.org/web/
# Public URL of login panel
publicUrl: https://dashboard.stackspin.example.org/web/
databaseUrl: mysql+pymysql://stackspin:stackspin@single-sign-on-database-mariadb/stackspin
## Kubernetes service configuration. For minikube, set this to NodePort, elsewhere use LoadBalancer or ClusterIP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment