paralus

by Tokens Studio

Helm chartv0.3.6App v0.2.8Verified publisher

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

RepositoryNameVersion
https://fluent.github.io/helm-chartsfluent-bit0.20.8
https://helm.elastic.coelasticsearch7.17.1
https://helm.elastic.cofilebeat7.17.1
https://k8s.ory.sh/helm/chartskratos0.29.0
https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnamicontour7.8.0
https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnamipostgresql11.1.9

Values

KeyTypeDefaultDescription
additionalLabelsobject{}Additional labels to add to all resources
affinityobject{}
auditLogs.storagestring"database"database(postgres) by default
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
contourobjectcontour subchart overwritethe chart will overwrite some values of contour subchart.
contour.envoy.hostPortsobject{"http":80,"https":443}Envoy host ports.
contour.envoy.service.annotationsobject{}Annotations for Envoy service.
contour.envoy.service.typestring"LoadBalancer"Type of Envoy service to create.
deploy.contour.enablebooltrueauto install contour ingress controller
deploy.contour.tlsobject{}TLS properties of the virtual host
deploy.elasticsearch.addressstring""Elasticsearch address. Required when deploy.elasticsearch.enable is unset.
deploy.elasticsearch.enableboolfalseElasticsearch instance is auto deployed and managed by Helm release when true.
deploy.filebeat.enableboolfalseFilebeat 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.indexPrefixstring"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.enablebooltrueFluentbit 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.adminAddrstring""Kratos admin address. Required when deploy.kratos.enable is unset
deploy.kratos.enablebooltrueKratos instance is auto deployed and managed by Helm release when true.
deploy.kratos.publicAddrstring""Kratos public address. Required when deploy.kratos.enable is unset
deploy.kratos.smtpConnectionURIstring"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.addressstring""Postgresql address for example, "localhost:5432". Required when deploy.postgresql.enable is unset and dsn is not specified.
deploy.postgresql.databasestring""Postgresql database name. Required when deploy.postgresql.enable is unset and dsn is not specified.
deploy.postgresql.dsnstring""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.enableboolfalsePostgresql 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.existingSecretobject{"keys":{"address":"","database":"","dsn":"","password":"","username":""},"name":""}Configuration for using an existing Kubernetes secret for database credentials
deploy.postgresql.existingSecret.keysobject{"address":"","database":"","dsn":"","password":"","username":""}Mapping of database credential keys in the existing secret
deploy.postgresql.existingSecret.keys.addressstring""Key in the secret containing the database address
deploy.postgresql.existingSecret.keys.databasestring""Key in the secret containing the database name
deploy.postgresql.existingSecret.keys.dsnstring""Key in the secret containing the database DSN
deploy.postgresql.existingSecret.keys.passwordstring""Key in the secret containing the database password
deploy.postgresql.existingSecret.keys.usernamestring""Key in the secret containing the database username
deploy.postgresql.existingSecret.namestring""Name of the existing Kubernetes secret containing database credentials
deploy.postgresql.passwordstring""Postgresql password. Required when deploy.postgresql.enable is unset and dsn is not specified.
deploy.postgresql.usernamestring""Postgresql username. Required when deploy.postgresql.enable is unset and dsn is not specified.
elasticsearch.minimumMasterNodesint1
elasticsearch.replicasint1
filebeatobjectfilebeat subchart overwritethe chart will overwrite some values of filebear subchart.
fluent-bit.existingConfigMapstring"fluentbit-config"
fqdn.coreConnectorSubdomainstring"*.core-connector"cluster communication
fqdn.domainstring"paralus.local"Root domain
fqdn.hostnamestring"console"subdomain used for viewing dashboard
fqdn.userSubdomainstring"*.user"communication
hooks.enablebooltrue
imagePullSecretslist[]If defined, uses a Secret to pull an image from a private Docker registry or repository
images.dashboard.namestring"dashboard"
images.dashboard.repositorystring"paralusio/dashboard"Paralus dashboard image
images.dashboard.tagstring"v0.2.3"
images.paralus.namestring"paralus"
images.paralus.repositorystring"paralusio/paralus"Paralus paralus image
images.paralus.tagstring"v0.2.8"
images.paralusInit.namestring"paralus-init"
images.paralusInit.repositorystring"paralusio/paralus-init"Paralus paralus initialize image
images.paralusInit.tagstring"v0.2.8"
images.prompt.namestring"prompt"
images.prompt.repositorystring"paralusio/prompt"prompt image
images.prompt.tagstring"v0.1.3"
images.pullPolicystring"IfNotPresent"If defined, a imagePullPolicy applied to all deployments
images.relay.namestring"relay"
images.relay.repositorystring"paralusio/relay"relay image
images.relay.tagstring"v0.1.8"
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.tlslist[]Ingress TLS for console
kratosobjectkratos subchart overwritethe chart will overwrite some values of kratos subchart.
nodeSelectorobject{}
paralus.automigratebooltrueEnable paralus migrations
paralus.initialize.adminEmailstring"[email protected]"Admin email address
paralus.initialize.adminFirstNamestring"Admin"Admin first name
paralus.initialize.adminLastNamestring"User"Admin last name
paralus.initialize.orgstring"ParalusOrg"Organization name
paralus.initialize.orgDescstring"Default Organization"Organization description
paralus.initialize.partnerstring"Paralus"Partner name
paralus.initialize.partnerDescstring"Default Partner"Partner description
paralus.initialize.partnerHoststring"paralus.local"Partner host
podAnnotationsobject{}Annotations for the all deployed pods
podSecurityContextobject{}
postgresql.authobject{"database":"admindb","enablePostgresUser":false,"existingSecret":"postgresql","password":"admindbpassword","username":"admindbuser"}When deploy.postgresql.enable is true postgres instance is created with this credentials.
postgresql.dbAddrstring""
replicaCountint1Number of replicas in deployment
resourcesobject{}
securityContextobject{}
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
services.dashboardobject{"name":"dashboard","ports":[{"containerPort":80,"name":"nginx"}],"type":"ClusterIP"}dashboard service config
services.paralusobject{"name":"paralus","ports":[{"containerPort":11000,"name":"http"},{"containerPort":10000,"name":"rpc"},{"containerPort":10001,"name":"relay-peering"}],"type":"ClusterIP"}paralus service config
services.promptobject{"name":"prompt","ports":[{"containerPort":7009,"name":"http"}],"type":"ClusterIP"}prompt service config
services.relayobject{"name":"relay","ports":[{"containerPort":443,"name":"https"}],"type":"ClusterIP"}relay service config
tolerationslist[]

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartparalus is pinned at v0.3.6 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