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
| Name | Url | |
|---|---|---|
| ORY Team | [email protected] | https://www.ory.sh/ |
Source Code
Requirements
| Repository | Name | Version |
|---|---|---|
| file://../hydra-maester | hydra-maester(hydra-maester) | 0.64.0 |
| file://../ory-commons | ory(ory-commons) | 0.1.0 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| configmap.hashSumEnabled | bool | true | switch to false to prevent checksum annotations being maintained and propogated to the pods |
| cronjob.janitor.affinity | object | {} | Configure node affinity |
| cronjob.janitor.annotations | object | {} | Set custom cron job level annotations |
| cronjob.janitor.automountServiceAccountToken | bool | true | Set automounting of the SA token in job's pod |
| cronjob.janitor.customArgs | list | [] | Configure the arguments of the entrypoint, overriding the default value |
| cronjob.janitor.customCommand | list | [] | Configure a custom entrypoint, overriding the default value |
| cronjob.janitor.extraContainers | string | "" | If you want to add extra sidecar containers. |
| cronjob.janitor.extraEnv | list | [] | 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.extraInitContainers | string | "" | If you want to add extra init containers. These are processed before the migration init container. |
| cronjob.janitor.extraVolumeMounts | list | [] | |
| cronjob.janitor.extraVolumes | list | [] | If you want to mount external volume |
| cronjob.janitor.labels | object | {} | Set custom cron job level labels |
| cronjob.janitor.nodeSelector | object | {} | Configure node labels for pod assignment |
| cronjob.janitor.podMetadata | object | {"annotations":{},"labels":{}} | Specify pod metadata, this metadata is added directly to the pod, and not higher objects |
| cronjob.janitor.podMetadata.annotations | object | {} | Extra pod level annotations |
| cronjob.janitor.podMetadata.labels | object | {} | Extra pod level labels |
| cronjob.janitor.podSecurityContext | object | {} | |
| cronjob.janitor.resources | object | {"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.schedule | string | "0 */1 * * *" | Configure how often the cron job is ran |
| cronjob.janitor.securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":100} | Configure the containers' SecurityContext for the janitor cronjob |
| cronjob.janitor.serviceAccount | object | {"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.annotations | object | {"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.automountServiceAccountToken | bool | true | Set automounting of the SA token |
| cronjob.janitor.serviceAccount.create | bool | true | Specifies whether a service account should be created |
| cronjob.janitor.serviceAccount.name | string | "" | 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.shareProcessNamespace | bool | false | Set sharing process namespace |
| cronjob.janitor.tolerations | list | [] | Configure node tolerations |
| deployment.annotations | object | {} | Set custom deployment level annotations |
| deployment.automigration | object | {"extraEnv":[]} | Parameters for the automigration initContainer |
| deployment.automigration.extraEnv | list | [] | 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.automountServiceAccountToken | bool | false | |
| deployment.autoscaling | object | {"behavior":{},"enabled":false,"extraMetrics":[],"maxReplicas":3,"minReplicas":1,"targetCPU":{},"targetMemory":{}} | Configure HPA |
| deployment.autoscaling.behavior | object | {} | Set custom behavior https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configurable-scaling-behavior |
| deployment.autoscaling.extraMetrics | list | [] | Add extraContainer container resource metrics https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#container-resource-metrics |
| deployment.customLivenessProbe | object | {} | Configure a custom livenessProbe. This overwrites the default object |
| deployment.customReadinessProbe | object | {} | 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.customStartupProbe | object | {} | 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.dnsConfig | object | {} | Configure pod dnsConfig. |
| deployment.extraContainers | string | "" | If you want to add extra sidecar containers. |
| deployment.extraEnv | list | [] | 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.extraInitContainers | string | "" | If you want to add extra init containers. These are processed before the migration init container. |
| deployment.extraVolumeMounts | list | [] | |
| deployment.extraVolumes | list | [] | If you want to mount external volume |
| deployment.initContainerSecurityContext | object | {} | |
| deployment.labels | object | {} | Set custom deployment level labels |
| deployment.lifecycle | object | {} | |
| deployment.nodeSelector | object | {} | Node labels for pod assignment. |
| deployment.podMetadata | object | {"annotations":{},"labels":{}} | Specify pod metadata, this metadata is added directly to the pod, and not higher objects |
| deployment.podMetadata.annotations | object | {} | Extra pod level annotations |
| deployment.podMetadata.labels | object | {} | Extra pod level labels |
| deployment.podSecurityContext.fsGroup | int | 65534 | |
| deployment.podSecurityContext.fsGroupChangePolicy | string | "OnRootMismatch" | |
| deployment.podSecurityContext.runAsGroup | int | 65534 | |
| deployment.podSecurityContext.runAsNonRoot | bool | true | |
| deployment.podSecurityContext.runAsUser | int | 65534 | |
| deployment.podSecurityContext.seccompProfile.type | string | "RuntimeDefault" | |
| deployment.readinessProbe | object | {"failureThreshold":5,"initialDelaySeconds":5,"periodSeconds":10} | Default probe timers |
| deployment.resources | object | {} | 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.revisionHistoryLimit | int | 5 | Number of revisions kept in history |
| deployment.securityContext.allowPrivilegeEscalation | bool | false | |
| deployment.securityContext.capabilities.drop[0] | string | "ALL" | |
| deployment.securityContext.privileged | bool | false | |
| deployment.securityContext.readOnlyRootFilesystem | bool | true | |
| deployment.securityContext.runAsGroup | int | 65534 | |
| deployment.securityContext.runAsNonRoot | bool | true | |
| deployment.securityContext.runAsUser | int | 65534 | |
| deployment.securityContext.seLinuxOptions.level | string | "s0:c123,c456" | |
| deployment.securityContext.seccompProfile.type | string | "RuntimeDefault" | |
| deployment.serviceAccount | object | {"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.annotations | object | {} | Annotations to add to the service account |
| deployment.serviceAccount.create | bool | true | Specifies whether a service account should be created |
| deployment.serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| deployment.startupProbe | object | {"failureThreshold":5,"initialDelaySeconds":1,"periodSeconds":1,"successThreshold":1,"timeoutSeconds":2} | Default probe timers |
| deployment.strategy.rollingUpdate.maxSurge | string | "25%" | |
| deployment.strategy.rollingUpdate.maxUnavailable | string | "25%" | |
| deployment.strategy.type | string | "RollingUpdate" | |
| deployment.terminationGracePeriodSeconds | int | 60 | |
| deployment.tolerations | list | [] | Configure node tolerations. |
| deployment.topologySpreadConstraints | list | [] | Configure pod topologySpreadConstraints. |
| fullnameOverride | string | "" | Full chart name override |
| global | object | {"imageRegistry":null,"podMetadata":{"annotations":{},"labels":{}}} | Global setting, passed down to all pods |
| global.imageRegistry | string | nil | Overrides the Docker registry globally for all images |
| global.podMetadata | object | {"annotations":{},"labels":{}} | Specify pod metadata, this metadata is added directly to the pod, and not higher objects |
| global.podMetadata.annotations | object | {} | Extra pod level annotations |
| global.podMetadata.labels | object | {} | Extra pod level labels |
| hydra-maester.adminService.name | string | "" | The service name value may need to be set if you use fullnameOverride for the parent chart |
| hydra.automigration.customArgs | list | [] | Ability to override arguments of the entrypoint. Can be used in-depended of customCommand eg: - sleep 5; - kratos |
| hydra.automigration.customCommand | list | [] | Ability to override the entrypoint of the automigration container (e.g. to source dynamic secrets or export environment dynamic variables) |
| hydra.automigration.enabled | bool | false | |
| hydra.automigration.resources | object | {} | resource requests and limits for the automigration initcontainer |
| hydra.automigration.type | string | "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.command | list | ["hydra"] | Ability to override the entrypoint of hydra container (e.g. to source dynamic secrets or export environment dynamic variables) |
| hydra.config | object | {"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.secrets | object | {} | 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.urls | object | {"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.customArgs | list | [] | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charthydra is pinned at v0.65.0 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