From 054b86f241f0cf8222e5d0c68f00202fad7aa879 Mon Sep 17 00:00:00 2001 From: root <root@cli.oas.lightmoon.net> Date: Thu, 14 Oct 2021 17:47:57 +0000 Subject: [PATCH] Minimal kratos service runnig --- helmchart/single-sign-on/README.md | 8 ++++++++ helmchart/single-sign-on/pvc.yaml | 13 +++++++++++++ helmchart/single-sign-on/values.yaml | 13 +++++++++---- 3 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 helmchart/single-sign-on/pvc.yaml diff --git a/helmchart/single-sign-on/README.md b/helmchart/single-sign-on/README.md index 7fba9ed..601f819 100644 --- a/helmchart/single-sign-on/README.md +++ b/helmchart/single-sign-on/README.md @@ -1 +1,9 @@ Please refer to the [online documentation](.../helmchart) + + +# apply PVC +kubectl apply -f pvc.yaml -n oas + +# install +helm upgrade -f ../current.yaml single-sign-on . --debug -n oas + diff --git a/helmchart/single-sign-on/pvc.yaml b/helmchart/single-sign-on/pvc.yaml new file mode 100644 index 0000000..ab6818c --- /dev/null +++ b/helmchart/single-sign-on/pvc.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: single-sign-on-kratos-database +spec: + accessModes: + - ReadWriteOnce + volumeMode: Filesystem + resources: + requests: + storage: 1Gi + storageClassName: local-path diff --git a/helmchart/single-sign-on/values.yaml b/helmchart/single-sign-on/values.yaml index 00fad5e..73fe9e7 100644 --- a/helmchart/single-sign-on/values.yaml +++ b/helmchart/single-sign-on/values.yaml @@ -73,9 +73,7 @@ userbackend: postgresql: persistence: enabled: true - size: 2Gi - storageClass: "-" - annotations: {} + existingClaim: "kratos-database" postgresqlDatabase: kratos postgresqlUsername: kratos postgresqlPassword: kratos @@ -84,11 +82,18 @@ postgresql: kratos: kratos: config: - dsn: postgres://kratos:kratos@{{ .Release.Name }}-postgresql:5433/kratos + dsn: postgres://kratos:kratos@single-sign-on-postgresql:5433/kratos + selfservice: + default_browser_return_url: https://stackspin.net + identity: + default_schema_url: base64://ewogICIkc2NoZW1hIjogImh0dHA6Ly9qc29uLXNjaGVtYS5vcmcvZHJhZnQtMDcvc2NoZW1hIyIsCiAgInR5cGUiOiAib2JqZWN0IiwKICAicHJvcGVydGllcyI6IHsKICAgICJiYXIiOiB7CiAgICAgICJ0eXBlIjogInN0cmluZyIKICAgIH0KICB9LAogICJyZXF1aXJlZCI6IFsKICAgICJiYXIiCiAgXQp9 secrets: session: - a password goes here - a secred goes here + courier: + smtp: + connection_uri: smtps://kratos:kratos@smtp.greenhost.nl:465/ hydra: maester: -- GitLab