hydra

by Helm

Helm chartv0.65.0App v26.2.0

A Helm chart for deploying ORY Hydra in Kubernetes

About this chart

hydra

A Helm chart for deploying ORY Hydra in Kubernetes

Homepage: https://www.ory.sh/

Maintainers

NameEmailUrl
ORY Team[email protected]https://www.ory.sh/

Source Code

Requirements

RepositoryNameVersion
file://../hydra-maesterhydra-maester(hydra-maester)0.64.0
file://../ory-commonsory(ory-commons)0.1.0

Values

KeyTypeDefaultDescription
affinityobject{}
configmap.hashSumEnabledbooltrueswitch to false to prevent checksum annotations being maintained and propogated to the pods
cronjob.janitor.affinityobject{}Configure node affinity
cronjob.janitor.annotationsobject{}Set custom cron job level annotations
cronjob.janitor.automountServiceAccountTokenbooltrueSet automounting of the SA token in job's pod
cronjob.janitor.customArgslist[]Configure the arguments of the entrypoint, overriding the default value
cronjob.janitor.customCommandlist[]Configure a custom entrypoint, overriding the default value
cronjob.janitor.extraContainersstring""If you want to add extra sidecar containers.
cronjob.janitor.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.janitor.extraInitContainersstring""If you want to add extra init containers. These are processed before the migration init container.
cronjob.janitor.extraVolumeMountslist[]
cronjob.janitor.extraVolumeslist[]If you want to mount external volume
cronjob.janitor.labelsobject{}Set custom cron job level labels
cronjob.janitor.nodeSelectorobject{}Configure node labels for pod assignment
cronjob.janitor.podMetadataobject{"annotations":{},"labels":{}}Specify pod metadata, this metadata is added directly to the pod, and not higher objects
cronjob.janitor.podMetadata.annotationsobject{}Extra pod level annotations
cronjob.janitor.podMetadata.labelsobject{}Extra pod level labels
cronjob.janitor.podSecurityContextobject{}
cronjob.janitor.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.janitor.schedulestring"0 */1 * * *"Configure how often the cron job is ran
cronjob.janitor.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":100}Configure the containers' SecurityContext for the janitor cronjob
cronjob.janitor.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. In some situations it is needed to provides specific permissions to Hydra deployments Like for example installing Hydra on a cluster with a PosSecurityPolicy and Istio. Uncoment if it is needed to provide a ServiceAccount for the Hydra deployment.
cronjob.janitor.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.janitor.serviceAccount.automountServiceAccountTokenbooltrueSet automounting of the SA token
cronjob.janitor.serviceAccount.createbooltrueSpecifies whether a service account should be created
cronjob.janitor.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.janitor.shareProcessNamespaceboolfalseSet sharing process namespace
cronjob.janitor.tolerationslist[]Configure node tolerations
deployment.annotationsobject{}Set custom deployment level annotations
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.autoscalingobject{"behavior":{},"enabled":false,"extraMetrics":[],"maxReplicas":3,"minReplicas":1,"targetCPU":{},"targetMemory":{}}Configure HPA
deployment.autoscaling.behaviorobject{}Set custom behavior https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configurable-scaling-behavior
deployment.autoscaling.extraMetricslist[]Add extraContainer container resource metrics https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#container-resource-metrics
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 hydra.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 hydra.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.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
deployment.initContainerSecurityContextobject{}
deployment.labelsobject{}Set custom deployment level labels
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.readinessProbeobject{"failureThreshold":5,"initialDelaySeconds":5,"periodSeconds":10}Default probe timers
deployment.resourcesobject{}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
deployment.revisionHistoryLimitint5Number of revisions kept in history
deployment.securityContext.allowPrivilegeEscalationboolfalse
deployment.securityContext.capabilities.drop[0]string"ALL"
deployment.securityContext.privilegedboolfalse
deployment.securityContext.readOnlyRootFilesystembooltrue
deployment.securityContext.runAsGroupint65534
deployment.securityContext.runAsNonRootbooltrue
deployment.securityContext.runAsUserint65534
deployment.securityContext.seLinuxOptions.levelstring"s0:c123,c456"
deployment.securityContext.seccompProfile.typestring"RuntimeDefault"
deployment.serviceAccountobject{"annotations":{},"create":true,"name":""}Specify the serviceAccountName value. In some situations it is needed to provides specific permissions to Hydra deployments Like for example installing Hydra on a cluster with a PosSecurityPolicy and Istio. Uncoment if it is needed to provide a ServiceAccount for the Hydra 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}Default probe timers
deployment.strategy.rollingUpdate.maxSurgestring"25%"
deployment.strategy.rollingUpdate.maxUnavailablestring"25%"
deployment.strategy.typestring"RollingUpdate"
deployment.terminationGracePeriodSecondsint60
deployment.tolerationslist[]Configure node tolerations.
deployment.topologySpreadConstraintslist[]Configure pod topologySpreadConstraints.
fullnameOverridestring""Full chart name override
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
hydra-maester.adminService.namestring""The service name value may need to be set if you use fullnameOverride for the parent chart
hydra.automigration.customArgslist[]Ability to override arguments of the entrypoint. Can be used in-depended of customCommand eg: - sleep 5; - kratos
hydra.automigration.customCommandlist[]Ability to override the entrypoint of the automigration container (e.g. to source dynamic secrets or export environment dynamic variables)
hydra.automigration.enabledboolfalse
hydra.automigration.resourcesobject{}resource requests and limits for the automigration initcontainer
hydra.automigration.typestring"job"Configure the way to execute database migration. Possible values: job, initContainer When set to job, the migration will be executed as a job on release or upgrade. When set to initContainer, the migration will be executed when kratos pod is created Defaults to job
hydra.commandlist["hydra"]Ability to override the entrypoint of hydra container (e.g. to source dynamic secrets or export environment dynamic variables)
hydra.configobject{"secrets":{},"serve":{"admin":{"port":4445},"public":{"port":4444}},"urls":{"self":{}}}The ORY Hydra configuration. For a full list of available settings, check: https://www.ory.sh/docs/hydra/reference/configuration
hydra.config.secretsobject{}The secrets have to be provided as a string slice, example: system: - "OG5XbmxXa3dYeGplQXpQanYxeEFuRUFa" - "foo bar 123 456 lorem" - "foo bar 123 456 lorem 1" - "foo bar 123 456 lorem 2" - "foo bar 123 456 lorem 3"
hydra.config.urlsobject{"self":{}}Configure the urls used by hydra itself, such as the issuer. Note: some values are required for hydra to start, please refer to https://www.ory.sh/docs/hydra/self-hosted/kubernetes-helm-chart self: issuer: "https://public.hydra.localhost:4444/"
hydra.customArgslist[]Ability to override arguments of the entrypoint. Can be used in-depended of customCommand
hydra.customMigrations.jobs.oel-postgresql-ttl.customArgs[0]string"migrate"
hydra.customMigrations.jobs.oel-postgresql-ttl.customArgs[1]string"postgresql-addons"
hydra.customMigrations.jobs.oel-p

Deploy hydra with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hydra 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 charthydra 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