supertokens
by Diabolocom
Helm chartv1.0.0App 3.14.0
SuperTokens Core Deployment
About this chart
supertokens
SuperTokens Core Deployment
Deployment
The chart currently use external postgres servers.
helm install supertokens . -n supertokens --create-namespace
Values
| Key | Type | Default | Description |
|---|---|---|---|
| apiKeys.enabled | bool | false | enable the use of API Keys with supertokens-core |
| apiKeys.keys | list | [] | list of API Keys to load and use with supertokens-core |
| autoscaling.enabled | bool | false | enable autoscaling of replicas |
| autoscaling.maxReplicas | int | 100 | maximum replica count when autoscaling |
| autoscaling.minReplicas | int | 1 | minimal replica count when autoscaling |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | target CPU usage before autoscaling |
| database.host | string | "postgres" | database host address |
| database.name | string | "supertokens" | database name |
| database.password | string | "supersecretpassword" | database user password |
| database.port | int | 5432 | database port |
| database.user | string | "supertokens" | database username |
| database.schema | string | "supertokens" | database schema |
| database.connectionPoolSize | int | 5 | maximum postgres connection pool size |
| accessTokenValidity | int | 3600 | Time in seconds for how long an access token is valid for |
| accessTokenBlacklisting | bool | false | If true, allows for immediate revocation of any access token. Keep in mind that setting this to true will result in a db query for each API call that requires authentication. |
| accessTokenSigningKeyDynamic | bool | true | If this is set to true, the JWT (access token) signing key will change every fixed interval of time. |
| accessTokenSigningKeyUpdateInterval | int | 168 | Time in hours for how frequently the JWT (access token) signing key will change. This value only makes sense if "accessTokenSigningKeyDynamic" is true. |
| refreshTokenValidity | int | 144000 | Time in mins for how long a refresh token is valid for. |
| passwordResetTokenLifetime | int | 3600000 | Time in milli-seconds for how long a password reset token is valid for. |
| emailVerificationTokenLifetime | int | 86400000 | Time in milli-seconds for how long an email verification token is valid for. |
| passwordlessMaxCodeInputAttempts | int | 5 | The maximum number of code input attempts per login before the user needs to restart. |
| passwordlessCodeLifetime | int | 900000 | Time in milliseconds for how long a passwordless code is valid for. |
| basePath | string | "" | base api path |
| disableTelemetry | bool | false | enable/disable telemetry |
| maxServerPoolSize | int | 10 | maximum java server pool size |
| fullnameOverride | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "supertokens/supertokens-postgresql" | docker repository |
| image.tag | string | "3.12" | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | [] | |
| nameOverride | string | "" | |
| podAnnotations | object | {} | |
| podSecurityContext | object | {} | |
| replicaCount | int | 1 | |
| resources | object | {} | limit and requests for resources for supertokens-core container |
| securityContext | object | {} | |
| serviceAccount.annotations | object | {} | Annotations to add to the service account |
| serviceAccount.create | bool | true | Specifies whether a service account should be created |
| 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 |
Autogenerated from chart metadata using helm-docs v1.7.0
Deploy supertokens with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has supertokens 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 chartsupertokens is pinned at v1.0.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