kratos

by Helm

Helm chartv0.65.0App v26.2.0

A ORY Kratos Helm chart for Kubernetes

About this chart

kratos

A ORY Kratos Helm chart for Kubernetes

Requirements

RepositoryNameVersion
file://../ory-commonsory(ory-commons)0.1.0

Values

KeyTypeDefaultDescription
autoscaling.behaviorobject{}Set custom behavior https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configurable-scaling-behavior
autoscaling.enabledboolfalse
autoscaling.extraMetricslist[]Add extraContainer container resource metrics https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#container-resource-metrics
autoscaling.maxReplicasint3
autoscaling.minReplicasint1
autoscaling.targetCPUobject{}
autoscaling.targetMemoryobject{}
cleanupobject{"batchSize":100,"enabled":false,"keepLast":"6h","sleepTables":"1m0s"}SQL cleanup cron job configuration
cleanup.batchSizeint100Configure how many records are cleaned per run
cleanup.enabledboolfalseEnable cleanup of stale database rows by periodically running the cleanup sql command
cleanup.keepLaststring"6h"Configure the youngest records to keep
cleanup.sleepTablesstring"1m0s"Configure how long to wait between each table cleanup
configmap.annotationsobject{}If you do want to specify annotations for configmap, uncomment the following lines, adjust them as necessary, and remove the curly braces after 'annotations:'.
configmap.hashSumEnabledbooltrueswitch to false to prevent checksum annotations being maintained and propogated to the pods
courierobject{"enabled":true}Configuration of the courier
cronjob.cleanup.affinityobject{}Configure node affinity
cronjob.cleanup.annotationsobject{}Set custom cron job level annotations
cronjob.cleanup.automountServiceAccountTokenbooltrueSet automounting of the SA token in job's pod
cronjob.cleanup.customArgslist[]Configure the arguments of the entrypoint, overriding the default value
cronjob.cleanup.extraContainerslist[]If you want to add extra sidecar containers.
cronjob.cleanup.extraEnvlist[]Array of extra envs to be passed to the cronjob. This takes precedence over deployment variables. Kubernetes format is expected. Value is processed with Helm tpl - name: FOO value: BAR
cronjob.cleanup.extraInitContainersstring""If you want to add extra init containers.
cronjob.cleanup.labelsobject{}Set custom cron job level labels
cronjob.cleanup.nodeSelectorobject{}Configure node labels for pod assignment
cronjob.cleanup.podMetadataobject{"annotations":{},"labels":{}}Specify pod metadata, this metadata is added directly to the pod, and not higher objects
cronjob.cleanup.podMetadata.annotationsobject{}Extra pod level annotations
cronjob.cleanup.podMetadata.labelsobject{}Extra pod level labels
cronjob.cleanup.resourcesobject{"limits":{},"requests":{}}We usually recommend not to specify default resources and to leave this as a conscious choice for the user. This also increases chances charts run on environments with little resources, such as Minikube. If you do want to specify resources, uncomment the following lines, adjust them as necessary, and remove the curly braces after 'resources:'. limits: cpu: 100m memory: 128Mi requests: cpu: 100m memory: 128Mi
cronjob.cleanup.schedulestring"0 */1 * * *"Configure how often the cron job is ran
cronjob.cleanup.serviceAccountobject{"annotations":{"helm.sh/hook":"pre-install, pre-upgrade","helm.sh/hook-delete-policy":"before-hook-creation","helm.sh/hook-weight":"0"},"automountServiceAccountToken":true,"create":true,"name":""}Specify the serviceAccountName value. Sometime you need to provide specific permissions for the cleanup cronjob. For example installing Kratos on a cluster with a PosSecurityPolicy and Istio. Uncomment if you need to provide a ServiceAccount for the cleanup cronjob.
cronjob.cleanup.serviceAccount.annotationsobject{"helm.sh/hook":"pre-install, pre-upgrade","helm.sh/hook-delete-policy":"before-hook-creation","helm.sh/hook-weight":"0"}Annotations to add to the service account
cronjob.cleanup.serviceAccount.automountServiceAccountTokenbooltrueSet automounting of the SA token
cronjob.cleanup.serviceAccount.createbooltrueSpecifies whether a service account should be created
cronjob.cleanup.serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
cronjob.cleanup.shareProcessNamespaceboolfalseSet sharing process namespace
cronjob.cleanup.tolerationslist[]Configure node tolerations
deployment.affinityobject{}Configure node affinity
deployment.annotationsobject{}
deployment.automigrationobject{"extraEnv":[]}Parameters for the automigration initContainer
deployment.automigration.extraEnvlist[]Array of extra envs to be passed to the initContainer. Kubernetes format is expected. Value is processed with Helm tpl - name: FOO value: BAR
deployment.automountServiceAccountTokenboolfalse
deployment.customLivenessProbeobject{}Configure a custom livenessProbe. This overwrites the default object
deployment.customReadinessProbeobject{}Configure a custom readinessProbe. This overwrites the default object. The default probe sends an HTTP GET to kratos.config.serve.admin.port on the pod IP, so it fails when serve.admin.host binds the admin API to 127.0.0.1 (e.g. behind a sidecar). Set this probe in that case.
deployment.customStartupProbeobject{}Configure a custom startupProbe. This overwrites the default object. The default probe sends an HTTP GET to kratos.config.serve.admin.port on the pod IP, so it fails when serve.admin.host binds the admin API to 127.0.0.1 (e.g. behind a sidecar). Set this probe in that case.
deployment.dnsConfigobject{}Configure pod dnsConfig.
deployment.extraArgslist[]Array of extra arguments to be passed down to the deployment. Kubernetes args format is expected - --foo - --sqa-opt-out
deployment.extraContainersstring""If you want to add extra sidecar containers.
deployment.extraEnvlist[]Array of extra envs to be passed to the deployment. Kubernetes format is expected. Value is processed with Helm tpl - name: FOO value: BAR
deployment.extraInitContainersstring""If you want to add extra init containers. These are processed before the migration init container.
deployment.extraVolumeMountslist[]
deployment.extraVolumeslist[]If you want to mount external volume For example, mount a secret containing Certificate root CA to verify database TLS connection.
deployment.labelsobject{}
deployment.lifecycleobject{}
deployment.nodeSelectorobject{}Node labels for pod assignment.
deployment.podMetadataobject{"annotations":{},"labels":{}}Specify pod metadata, this metadata is added directly to the pod, and not higher objects
deployment.podMetadata.annotationsobject{}Extra pod level annotations
deployment.podMetadata.labelsobject{}Extra pod level labels
deployment.podSecurityContext.fsGroupint65534
deployment.podSecurityContext.fsGroupChangePolicystring"OnRootMismatch"
deployment.podSecurityContext.runAsGroupint65534
deployment.podSecurityContext.runAsNonRootbooltrue
deployment.podSecurityContext.runAsUserint65534
deployment.podSecurityContext.seccompProfile.typestring"RuntimeDefault"
deployment.priorityClassNamestring""Pod priority https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
deployment.readinessProbeobject{"failureThreshold":5,"initialDelaySeconds":5,"periodSeconds":10}Configure the readinessProbe parameters
deployment.resourcesobject{}Set desired resource parameters We usually recommend not to specify default resources and to leave this as a conscious choice for the user. This also increases chances charts run on environments with little resources, such as Minikube. If you do want to specify resources, uncomment the following lines, adjust them as necessary, and remove the curly braces after 'resources:'.
deployment.revisionHistoryLimitint5Number of revisions kept in history
deployment.serviceAccountobject{"annotations":{},"create":true,"name":""}Specify the serviceAccountName value. In some situations it is needed to provide specific permissions to Kratos deployments. Like for example installing Kratos on a cluster with a PosSecurityPolicy and Istio. Uncomment if it is needed to provide a ServiceAccount for the Kratos deployment.
deployment.serviceAccount.annotationsobject{}Annotations to add to the service account
deployment.serviceAccount.createbooltrueSpecifies whether a service account should be created
deployment.serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
deployment.startupProbeobject{"failureThreshold":5,"initialDelaySeconds":1,"periodSeconds":1,"successThreshold":1,"timeoutSeconds":2}Configure the startupProbe parameters
deployment.terminationGracePeriodSecondsint60
deployment.tolerationslist[]Configure node tolerations.
deployment.topologySpreadConstraintslist[]Configure pod topologySpreadConstraints.
fullnameOverridestring""
globalobject{"imageRegistry":null,"podMetadata":{"annotations":{},"labels":{}}}Global setting, passed down to all pods
global.imageRegistrystringnilOverrides the Docker registry globally for all images
global.podMetadataobject{"annotations":{},"labels":{}}Specify pod metadata, this metadata is added directly to the pod, and not higher objects
global.podMetadata.annotationsobject{}Extra pod level annotations
global.podMetadata.labelsobject{}Extra pod level labels
image.pullPolicystring"IfNotPresent"
image.registrystring"docker.io"ORY KRATOS image registry
image.repositorystring"oryd/kratos"ORY KRATOS image
image.tagstring"v26.2.0"ORY KRATOS VERSION Alternative format: image: oryd/kratos:v0.6.3-alpha.1
imagePullSecretslist[]
ingress.admin.annotationsobject{}
ingress.admin.classNamestring""
ingress.admin.enabledboolfalse
ingress.admin.hosts[0].hoststring"kratos.admin.local.com"
ingress.admin.hosts[0].paths[0].pathstring"/"
ingress.admin.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.admin.tlslist[]
ingress.public.annotationsobject{}
ingress.public.classNamestring""
ingress.public.enabledboolfalse
ingress.public.hosts[0].hoststring"kratos.public.local.com"
ingress.public.hosts[0].paths[0].pathstring"/"
ingress.public.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.public.tlslist[]
job.annotationsobject{"helm.sh/hook":"pre-install, pre-upgrade","helm.sh/hook-delete-policy":"before-hook-creation,hook-succeeded","helm.sh/hook-weight":"1"}If you do want to specify annotations, uncomment the following lines, adjust them as necessary, and remove the curly braces after 'annotations:'.
job.automountServiceAccountTokenboolfalseSet automounting of the SA token
job.extraContainersstring""If you want to add extra sidecar containers.
job.extraEnvlist[]Array of extra envs to be passed to the job. This takes precedence over deployment variables. Kubernetes format is expected. Value is processed with Helm tpl - name: FOO value: BAR
job.extraInitContainersstring""If you want to add extra init containers.
job.lifecyclestring""If you want to add lifecycle hooks.
job.nodeSelectorobject{}Node labels for pod assignment.
job.podMetadataobject{"annotations":{},"labels":{}}Specify pod metadata, this metadata is added directly to the pod, and not higher objects
job.podMetadata.annotationsobject{}Extra pod level annotations
job.podMetadata.labelsobject{}Extra pod level labels
job.resourcesobject{}resource requests and limits for the job
job.serviceAccountobject{"annotations":{"helm.sh/hook":"pre-install, pre-upgrade","helm.sh/hook-delete-policy":"before-hook-creation","helm.sh/hook-weight":"0"},"create":true,"name":""}Specify the serviceAccountName value. In some situations it is needed to provide specific permissions to Kratos deployments Like for example installing Kratos on a cluster with a PosSecurityPolicy and Istio. Uncomment if it is needed to provide a ServiceAccount for the Kratos deployment.
job.serviceAccount.annotationsobject`{"helm.sh/hook":"pre-install, pre-up

Deploy kratos with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has 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 chartkratos is pinned at v0.65.0 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