radar-kratos

by RADAR-Base

Helm chartv0.1.5App v1.3.0Verified publisher

A ORY Kratos Helm chart for RADAR-base. ORY Kratos is a cloud native Identity and User Management system.

About this chart

radar-kratos

A ORY Kratos Helm chart for RADAR-base. ORY Kratos is a cloud native Identity and User Management system.

Homepage: https://radar-base.org

ORY Kratos

This chart deploys ORY Kratos via a dependency to this chart. Configuration to the ORY Kratos chart is passed via the Kratos: key in the values.yaml file. Consult the documentation of the Ory Kratos chart for additional information on how to configure this service if needed.

Maintainers

NameEmailUrl
Pim van Nierop[email protected]https://www.thehyve.nl/experts/pim-van-nierop

Source Code

Prerequisites

  • Kubernetes 1.28+
  • Kubectl 1.28+
  • Helm 3.1.0+

Requirements

RepositoryNameVersion
file://../../external/kratoskratos0.52.1
https://radar-base.github.io/radar-helm-chartscommon2.x.x

Values

KeyTypeDefaultDescription
kratosobjectcheck values.yamlOry Kratos configuration
kratos.server_namestring"localhost"Hostname for the Kratos service
kratos.advertised_protocolstring"https"Protocol for the Kratos service (allowed values: http, https)
kratos.kratos.automigrationobject{"enabled":true}Enables database migration
kratos.kratos.identitySchemasobject{"identity.schema.admin.json":"{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"admin\",\n \"title\": \"admin\",\n \"type\": \"object\",\n \"properties\": {\n \"traits\": {\n \"type\": \"object\",\n \"properties\": {\n \"email\": {\n \"type\": \"string\",\n \"format\": \"email\",\n \"title\": \"E-Mail\",\n \"minLength\": 5,\n \"ory.sh/kratos\": {\n \"credentials\": {\n \"password\": {\n \"identifier\": true\n },\n \"totp\": {\n \"account_name\": true\n }\n },\n \"verification\": {\n \"via\": \"email\"\n },\n \"recovery\": {\n \"via\": \"email\"\n }\n }\n }\n },\n \"required\": [\"email\"]\n }\n },\n \"additionalProperties\": false\n}\n","identity.schema.researcher.json":"{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"researcher\",\n \"title\": \"researcher\",\n \"type\": \"object\",\n \"properties\": {\n \"traits\": {\n \"type\": \"object\",\n \"properties\": {\n \"email\": {\n \"type\": \"string\",\n \"format\": \"email\",\n \"title\": \"E-Mail\",\n \"minLength\": 5,\n \"ory.sh/kratos\": {\n \"credentials\": {\n \"password\": {\n \"identifier\": true\n },\n \"totp\": {\n \"account_name\": true\n }\n },\n \"verification\": {\n \"via\": \"email\"\n },\n \"recovery\": {\n \"via\": \"email\"\n }\n }\n }\n },\n \"required\": [\"email\"]\n }\n },\n \"additionalProperties\": false\n}\n","identity.schema.subject.json":"{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"subject\",\n \"title\": \"subject\",\n \"type\": \"object\",\n \"properties\": {\n \"traits\": {\n \"type\": \"object\",\n \"properties\": {\n \"email\": {\n \"type\": \"string\",\n \"format\": \"email\",\n \"title\": \"E-Mail\",\n \"minLength\": 5,\n \"ory.sh/kratos\": {\n \"credentials\": {\n \"password\": {\n \"identifier\": true\n },\n \"totp\": {\n \"account_name\": true\n }\n },\n \"verification\": {\n \"via\": \"email\"\n },\n \"recovery\": {\n \"via\": \"email\"\n }\n }\n }\n },\n \"required\": [\"email\"]\n }\n },\n \"additionalProperties\": false\n}\n"}You can add multiple identity schemas here. You can pass JSON schema using --set-file Helm CLI argument.
kratos.pdbobject{"enabled":false,"spec":{"maxUnavailable":null,"minAvailable":1}}Pod Disruption Budget configuration (covers kratos deployment only, not courier)
kratos.pdb.enabledboolfalseEnable Pod Disruption Budget
kratos.pdb.spec.minAvailableint1Minimum number of pods that must be available during disruptions
kratos.pdb.spec.maxUnavailablestringnilMaximum number of pods that can be unavailable during disruptions
kratos.autoscalingobject{"enabled":false,"maxReplicas":5,"minReplicas":1,"targetCPU":{"averageUtilization":80,"type":"Utilization"},"targetMemory":{}}Horizontal Pod Autoscaler configuration
kratos.autoscaling.enabledboolfalseEnable HPA
kratos.autoscaling.minReplicasint1Minimum number of replicas
kratos.autoscaling.maxReplicasint5Maximum number of replicas
kratos.autoscaling.targetCPUobject{"averageUtilization":80,"type":"Utilization"}Target CPU utilization percentage
kratos.autoscaling.targetMemoryobject{}Target Memory utilization percentage

Deploy radar-kratos with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has radar-kratos on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartradar-kratos is pinned at v0.1.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply