hydra

by RADAR-Base

Helm chartv0.48.0App v2.2.0Verified publisher

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.48.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
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 - 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"},"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.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.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 - name: FOO value: BAR
deployment.automountServiceAccountTokenboolfalse
deployment.autoscalingobject{"behavior":{},"enabled":false,"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.customLivenessProbeobject{}Configure a custom livenessProbe. This overwrites the default object
deployment.customReadinessProbeobject{}Configure a custom readinessProbe. This overwrites the default object
deployment.customStartupProbeobject{}Configure a custom startupProbe. This overwrites the default object
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 - 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.livenessProbeobject{"failureThreshold":5,"initialDelaySeconds":5,"periodSeconds":10}Default probe timers
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":60,"periodSeconds":1,"successThreshold":1,"timeoutSeconds":1}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
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},"tls":{"allow_termination_from":["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16"]}},"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.customArgslist[]Ability to override arguments of the entrypoint. Can be used in-depended of customCommand
hydra.devboolfalseEnable dev mode, not secure in production environments
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"oryd/hydra"ORY Hydra image
image.tagstring"v2.2.0"ORY Hydra version
imagePullSecretslist[]Image pull secrets
ingress.admin.annotationsobject{}
ingress.admin.classNamestring""
ingress.admin.enabledboolfalseEn-/Disable the api ingress.
ingress.admin.hosts[0].hoststring"admin.hydra.localhost"
ingress.admin.hosts[0].paths[0].pathstring"/"
ingress.admin.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.publicobject{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"public.hydra.localhost","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]}Configure ingress for the proxy port.
ingress.public.enabledboolfalseEn-/Disable the proxy ingress.
janitor.batchSizeint100Configure how many records are deleted with each iteration
janitor.cleanupGrantsboolfalseConfigure if the trust relationships must be cleaned up
janitor.cleanupRequestsboolfalseConfigure if the consent and authentication requests must be cleaned up
janitor.cleanupTokensboolfalseConfigure if the access and refresh tokens must be cleaned up
janitor.enabledboolfalseEnable cleanup of stale database rows by periodically running the janitor command
janitor.limitint10000Configure how many records are retrieved from database for deletion
job.annotationsobject{"helm.sh/hook":"pre-install, pre-upgrade","helm.sh/hook-delete-policy":"before-hook-creation","helm.sh/hook-weight":"1"}If you do want to specify annotations, uncomme

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.48.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