radar-kratos
by RADAR-Base
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
| Name | Url | |
|---|---|---|
| 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
| Repository | Name | Version |
|---|---|---|
| file://../../external/kratos | kratos | 0.52.1 |
| https://radar-base.github.io/radar-helm-charts | common | 2.x.x |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| kratos | object | check values.yaml | Ory Kratos configuration |
| kratos.server_name | string | "localhost" | Hostname for the Kratos service |
| kratos.advertised_protocol | string | "https" | Protocol for the Kratos service (allowed values: http, https) |
| kratos.kratos.automigration | object | {"enabled":true} | Enables database migration |
| kratos.kratos.identitySchemas | object | {"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.pdb | object | {"enabled":false,"spec":{"maxUnavailable":null,"minAvailable":1}} | Pod Disruption Budget configuration (covers kratos deployment only, not courier) |
| kratos.pdb.enabled | bool | false | Enable Pod Disruption Budget |
| kratos.pdb.spec.minAvailable | int | 1 | Minimum number of pods that must be available during disruptions |
| kratos.pdb.spec.maxUnavailable | string | nil | Maximum number of pods that can be unavailable during disruptions |
| kratos.autoscaling | object | {"enabled":false,"maxReplicas":5,"minReplicas":1,"targetCPU":{"averageUtilization":80,"type":"Utilization"},"targetMemory":{}} | Horizontal Pod Autoscaler configuration |
| kratos.autoscaling.enabled | bool | false | Enable HPA |
| kratos.autoscaling.minReplicas | int | 1 | Minimum number of replicas |
| kratos.autoscaling.maxReplicas | int | 5 | Maximum number of replicas |
| kratos.autoscaling.targetCPU | object | {"averageUtilization":80,"type":"Utilization"} | Target CPU utilization percentage |
| kratos.autoscaling.targetMemory | object | {} | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartradar-kratos is pinned at v0.1.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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