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

View file

@ -1,6 +1,5 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
# apiVersion: {{ template "common.capabilities.ingress.apiVersion" . }} apiVersion: {{ template "common.capabilities.ingress.apiVersion" . }}
apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ template "common.names.fullname" . }} name: {{ template "common.names.fullname" . }}
@ -63,20 +62,18 @@ spec:
number: 80 number: 80
{{- end }} {{- end }}
{{- range .Values.ingress.extraHosts }} {{- 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 }} - host: {{ .name }}
http: http:
paths: paths:
- path: ({{ default "/" .path }}.*) - path: {{ default "/" .path }}(.*)
{{- if eq "true" (include "common.ingress.supportsPathType" $) }} {{- if eq "true" (include "common.ingress.supportsPathType" $) }}
pathType: {{ default "ImplementationSpecific" .pathType }} pathType: {{ default "ImplementationSpecific" .pathType }}
{{- end }} {{- end }}
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "dashboard.serviceName" $) "servicePort" "dashboard-http" "context" $) | nindent 14 }} backend: {{- include "common.ingress.backend" (dict "serviceName" (include "dashboard.serviceName" $) "servicePort" "dashboard-http" "context" $) | nindent 14 }}
- path: ({{ default "/" .path }}api/v1.*) - 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.*)
{{- if eq "true" (include "common.ingress.supportsPathType" $) }} {{- if eq "true" (include "common.ingress.supportsPathType" $) }}
pathType: {{ default "ImplementationSpecific" .pathType }} pathType: {{ default "ImplementationSpecific" .pathType }}
{{- end }} {{- end }}

View file

@ -39,9 +39,20 @@ commonAnnotations: {}
## @section Stackspin parameters ## @section Stackspin parameters
## @param imagePullSecrets Specify docker-registry secret names as an array ## @param imagePullSecrets Specify docker-registry secret names as an array
## @param imagePullPolicy Policy on pulling images on container start
## ##
image: image:
imagePullSecrets: [] 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 pullPolicy: Always
## Dashboard configuration parameters ## Dashboard configuration parameters
@ -61,11 +72,6 @@ dashboard:
registry: open.greenhost.net:4567 registry: open.greenhost.net:4567
repository: stackspin/dashboard/dashboard repository: stackspin/dashboard/dashboard
tag: 0-1-6 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. ## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace. ## Secrets must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ ## 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.registry Stackspin image registry
## @param image.repository Stackspin image repository ## @param image.repository Stackspin image repository
## @param image.tag Stackspin image tag ## @param image.tag Stackspin image tag
## @param image.pullPolicy Stackspin image pull policy
## @param image.pullSecrets Stackspin image pull secrets ## @param image.pullSecrets Stackspin image pull secrets
## @param image.debug Specify if debug logs should be enabled ## @param image.debug Specify if debug logs should be enabled
## ##
@ -234,11 +239,6 @@ backend:
registry: open.greenhost.net:4567 registry: open.greenhost.net:4567
repository: stackspin/dashboard-backend/dashboard-backend repository: stackspin/dashboard-backend/dashboard-backend
tag: 19-integrate-flask-sso-panel-into-dashboard-flask-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. ## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace. ## Secrets must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ ## 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 authorizationBaseUrl: https://sso.stackspin.example.org/oauth2/auth
tokenUrl: https://sso.stackspin.example.org/oauth2/token tokenUrl: https://sso.stackspin.example.org/oauth2/token
# Where to find the Kratos ADMIN and PUBLIC url
kratos: kratos:
publicUrl: https://sso.stackspin.example.org/kratos publicUrl: https://sso.stackspin.example.org/kratos
adminUrl: http://single-sign-on-kratos-admin:80 adminUrl: http://single-sign-on-kratos-admin:80
# Where to find the Hydra ADMIN url
hydra: hydra:
adminUrl: http://single-sign-on-hydra-admin:4445 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 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 ## Kubernetes service configuration. For minikube, set this to NodePort, elsewhere use LoadBalancer or ClusterIP