paralus
A Helm chart for Paralus ZTKA.
About this chart
ztka
A Helm chart for Paralus ZTKA.
Note that this has diverged from the original paralus helm chart to support existing secrets
This chart bootstraps the Paralus deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes v1.18+
Get Repo Info
helm repo add tokensstudio https://tokens-studio.github.io/helm/
helm repo update
Install Chart
Important: only helm3 is supported
helm install [RELEASE_NAME] tokensstudio/ztka -n paralus \
--create-namespace \
--set deploy.postgresql.enable=true
The command deploys Paralus on the Kubernetes cluster in the default configuration.
See configuration below.
See helm install for command documentation.
Uninstall Chart
helm uninstall [RELEASE_NAME] -n paralus
This removes all the Kubernetes components associated with the chart and deletes the release.
See helm uninstall for command documentation.
Upgrading Chart
helm upgrade [RELEASE_NAME] paralus/ztka --install -n paralus --create-namespace
See helm upgrade for command documentation.
Upgrading to chart v0.1.9
The chart v0.1.9 introduced support for both database and elasticsearch as a back-end for auditlog storage. Defaults to database storage. So upgrading from older version to v0.1.9 may affect the auditing functionality.
It is advised to use below command when upgrade to v0.1.9 without breaking auditlog functionality.
helm upgrade [RELEASE_NAME] paralus/ztka -n paralus \
-f https://raw.githubusercontent.com/paralus/helm-charts/main/examples/values.elasticsearch.yaml \
--version 0.1.9
It is recommended to keep using either database or elasticsearch for auditing storage to avoid auditlog data loss throughout upgrades.
Configuration
See Customizing the Chart Before Installing. To see all configurable options with detailed comments, visit the chart's values.yaml, or run these configuration commands:
helm show values paralus/ztka
Requirements
| Repository | Name | Version |
|---|---|---|
| https://fluent.github.io/helm-charts | fluent-bit | 0.20.8 |
| https://helm.elastic.co | elasticsearch | 7.17.1 |
| https://helm.elastic.co | filebeat | 7.17.1 |
| https://k8s.ory.sh/helm/charts | kratos | 0.29.0 |
| https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami | contour | 7.8.0 |
| https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami | postgresql | 11.1.9 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalLabels | object | {} | Additional labels to add to all resources |
| affinity | object | {} | |
| auditLogs.storage | string | "database" | database(postgres) by default |
| autoscaling.enabled | bool | false | |
| autoscaling.maxReplicas | int | 100 | |
| autoscaling.minReplicas | int | 1 | |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | |
| contour | object | contour subchart overwrite | the chart will overwrite some values of contour subchart. |
| contour.envoy.hostPorts | object | {"http":80,"https":443} | Envoy host ports. |
| contour.envoy.service.annotations | object | {} | Annotations for Envoy service. |
| contour.envoy.service.type | string | "LoadBalancer" | Type of Envoy service to create. |
| deploy.contour.enable | bool | true | auto install contour ingress controller |
| deploy.contour.tls | object | {} | TLS properties of the virtual host |
| deploy.elasticsearch.address | string | "" | Elasticsearch address. Required when deploy.elasticsearch.enable is unset. |
| deploy.elasticsearch.enable | bool | false | Elasticsearch instance is auto deployed and managed by Helm release when true. |
| deploy.filebeat.enable | bool | false | Filebeat is used to collect audit logs into the system via elasticsearch. You can disable this if you don't want audit logs or you want to store audit logs into database. |
| deploy.filebeat.indexPrefix | string | "ralog" | You can use this to config the index prefixes for elasticsearch. This has to match with your filebeat config in filebeat.daemonset.filebeatConfig.filebeat.yml |
| deploy.fluentbit.enable | bool | true | Fluentbit is used to collect audit logs into the system via a database. You can disable this if you don't want audit logs or you want to push audit logs to elasticsearch. |
| deploy.kratos.adminAddr | string | "" | Kratos admin address. Required when deploy.kratos.enable is unset |
| deploy.kratos.enable | bool | true | Kratos instance is auto deployed and managed by Helm release when true. |
| deploy.kratos.publicAddr | string | "" | Kratos public address. Required when deploy.kratos.enable is unset |
| deploy.kratos.smtpConnectionURI | string | "smtps://test:test@mypost:1025/?skip_ssl_verify=true" | SMTP connection URI that used by auto-deployed kratos for sending mails for example, account recovery etc. |
| deploy.postgresql.address | string | "" | Postgresql address for example, "localhost:5432". Required when deploy.postgresql.enable is unset and dsn is not specified. |
| deploy.postgresql.database | string | "" | Postgresql database name. Required when deploy.postgresql.enable is unset and dsn is not specified. |
| deploy.postgresql.dsn | string | "" | Postgresql DSN for example, "postgres://user:password@host:5432/db". Required when deploy.postgresql.enable is unset and individual components are not specified. Overrides individual components (address, username, password, database) |
| deploy.postgresql.enable | bool | false | Postgresql db is auto deployed and managed by Helm release when true. (It is recommended to manage your own DB instance separately or use DB services like Amazon RDS in production) |
| deploy.postgresql.existingSecret | object | {"keys":{"address":"","database":"","dsn":"","password":"","username":""},"name":""} | Configuration for using an existing Kubernetes secret for database credentials |
| deploy.postgresql.existingSecret.keys | object | {"address":"","database":"","dsn":"","password":"","username":""} | Mapping of database credential keys in the existing secret |
| deploy.postgresql.existingSecret.keys.address | string | "" | Key in the secret containing the database address |
| deploy.postgresql.existingSecret.keys.database | string | "" | Key in the secret containing the database name |
| deploy.postgresql.existingSecret.keys.dsn | string | "" | Key in the secret containing the database DSN |
| deploy.postgresql.existingSecret.keys.password | string | "" | Key in the secret containing the database password |
| deploy.postgresql.existingSecret.keys.username | string | "" | Key in the secret containing the database username |
| deploy.postgresql.existingSecret.name | string | "" | Name of the existing Kubernetes secret containing database credentials |
| deploy.postgresql.password | string | "" | Postgresql password. Required when deploy.postgresql.enable is unset and dsn is not specified. |
| deploy.postgresql.username | string | "" | Postgresql username. Required when deploy.postgresql.enable is unset and dsn is not specified. |
| elasticsearch.minimumMasterNodes | int | 1 | |
| elasticsearch.replicas | int | 1 | |
| filebeat | object | filebeat subchart overwrite | the chart will overwrite some values of filebear subchart. |
| fluent-bit.existingConfigMap | string | "fluentbit-config" | |
| fqdn.coreConnectorSubdomain | string | "*.core-connector" | cluster communication |
| fqdn.domain | string | "paralus.local" | Root domain |
| fqdn.hostname | string | "console" | subdomain used for viewing dashboard |
| fqdn.userSubdomain | string | "*.user" | communication |
| hooks.enable | bool | true | |
| imagePullSecrets | list | [] | If defined, uses a Secret to pull an image from a private Docker registry or repository |
| images.dashboard.name | string | "dashboard" | |
| images.dashboard.repository | string | "paralusio/dashboard" | Paralus dashboard image |
| images.dashboard.tag | string | "v0.2.3" | |
| images.paralus.name | string | "paralus" | |
| images.paralus.repository | string | "paralusio/paralus" | Paralus paralus image |
| images.paralus.tag | string | "v0.2.8" | |
| images.paralusInit.name | string | "paralus-init" | |
| images.paralusInit.repository | string | "paralusio/paralus-init" | Paralus paralus initialize image |
| images.paralusInit.tag | string | "v0.2.8" | |
| images.prompt.name | string | "prompt" | |
| images.prompt.repository | string | "paralusio/prompt" | prompt image |
| images.prompt.tag | string | "v0.1.3" | |
| images.pullPolicy | string | "IfNotPresent" | If defined, a imagePullPolicy applied to all deployments |
| images.relay.name | string | "relay" | |
| images.relay.repository | string | "paralusio/relay" | relay image |
| images.relay.tag | string | "v0.1.8" | |
| ingress.annotations | object | {} | |
| ingress.className | string | "" | |
| ingress.enabled | bool | false | |
| ingress.tls | list | [] | Ingress TLS for console |
| kratos | object | kratos subchart overwrite | the chart will overwrite some values of kratos subchart. |
| nodeSelector | object | {} | |
| paralus.automigrate | bool | true | Enable paralus migrations |
| paralus.initialize.adminEmail | string | "[email protected]" | Admin email address |
| paralus.initialize.adminFirstName | string | "Admin" | Admin first name |
| paralus.initialize.adminLastName | string | "User" | Admin last name |
| paralus.initialize.org | string | "ParalusOrg" | Organization name |
| paralus.initialize.orgDesc | string | "Default Organization" | Organization description |
| paralus.initialize.partner | string | "Paralus" | Partner name |
| paralus.initialize.partnerDesc | string | "Default Partner" | Partner description |
| paralus.initialize.partnerHost | string | "paralus.local" | Partner host |
| podAnnotations | object | {} | Annotations for the all deployed pods |
| podSecurityContext | object | {} | |
| postgresql.auth | object | {"database":"admindb","enablePostgresUser":false,"existingSecret":"postgresql","password":"admindbpassword","username":"admindbuser"} | When deploy.postgresql.enable is true postgres instance is created with this credentials. |
| postgresql.dbAddr | string | "" | |
| replicaCount | int | 1 | Number of replicas in deployment |
| resources | object | {} | |
| securityContext | object | {} | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| services.dashboard | object | {"name":"dashboard","ports":[{"containerPort":80,"name":"nginx"}],"type":"ClusterIP"} | dashboard service config |
| services.paralus | object | {"name":"paralus","ports":[{"containerPort":11000,"name":"http"},{"containerPort":10000,"name":"rpc"},{"containerPort":10001,"name":"relay-peering"}],"type":"ClusterIP"} | paralus service config |
| services.prompt | object | {"name":"prompt","ports":[{"containerPort":7009,"name":"http"}],"type":"ClusterIP"} | prompt service config |
| services.relay | object | {"name":"relay","ports":[{"containerPort":443,"name":"https"}],"type":"ClusterIP"} | relay service config |
| tolerations | list | [] |
Autogenerated from chart metadata using helm-docs v1.14.2
Deploy paralus with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has paralus 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 chartparalus is pinned at v0.3.6 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