TDP databases
ready in CloudBeaver.
Four scenarios: how pre-registered connections reach the workspace, ClickHouse and Trino already registered, and the S3 credentials in the pod. Each one covers: the chart default, the values file block commented line by line, and a step-by-step with verification.
The tdp-cloudbeaver chart can pre-register ClickHouse and Trino connections in a TDP navigator folder, from tdp-cloudbeaver.dataSources. Connections enter the workspace only on first startup. Afterwards, interface changes apply. For installation, access and metadata in PostgreSQL, see CloudBeaver Configuration.
Your environment
If you fill in your environment details here, the examples and commands on the page use what you provided. The namespace, the release name and the values file are your choices, not the chart's.
Scenarios
- 1 · How it connects
- 2 · ClickHouse
- 3 · Trino
- 4 · S3 variables
From values file to TDP folder: the ConfigMap, copying on first startup, and shared values.
CloudBeaver connects to the TDP databases through pre-registered connections: the chart generates a data-sources.json from dataSources, in a ConfigMap with the fixed name tdp-cloudbeaver-data-sources, and the connections appear in a TDP folder in the CloudBeaver navigator.
By default, no connection is registered: enabledClickhouse and enabledTrino are off. The following scenarios turn on the ClickHouse connection (scenario 2) and the Trino connection (scenario 3) and pass the S3 variables to the pod (scenario 4).
You want the team to find TDP databases in CloudBeaver without registering anything, and need to understand when pre-registered connections take effect. CloudBeaver stores users, connections and settings in the workspace, which lives on the release PVC. At pod startup, the sync-workspace-config init container copies data-sources.json to the workspace only if the workspace does not already have one, that is, on first startup. Afterwards, CloudBeaver reads workspace connections, and interface changes remain on the PVC.
No connections: enabledClickhouse and enabledTrino disabled.
Set dataSources in the values file for the first installation. To apply new settings to an existing release, uninstall it (the workspace PVC is removed too) and install again, or edit the connection through the interface.
database, user and password apply to both connections: with ClickHouse and Trino enabled together, both use the same default database, username and password.
Registered through the interface: by the administrator or, with app.supportsCustomConnections enabled, by users themselves (see Security - CloudBeaver). CloudBeaver's own metadata in PostgreSQL is covered in CloudBeaver Configuration.
The preconfigured connections in the workspace
- Users. Find pre-registered connections in the CloudBeaver navigator's TDP folder, without registering anything.
- CloudBeaver. Before CloudBeaver starts, the sync-workspace-config init container copies data-sources.json from the ConfigMap to the workspace, only if the workspace does not already have one. CloudBeaver then reads connections from the workspace.
- Fixed name: tdp-cloudbeaver-data-sources. The data-sources.json generated by the chart from dataSources, with connections and the TDP folder. It contains connection passwords. Chart default:
no connections. (tdp-cloudbeaver.dataSources) - Workspace. Receives data-sources.json on first startup. Subsequent interface changes remain there, and the chart does not overwrite them.
1tdp-cloudbeaver:2dataSources:3 name: tdp-cloudbeaver-data-sources4 enabledTrino: false5 nameConnector: "Trino TDP"6 trinoHost: ""7 trinoPort: 80808 enabledClickhouse: false9 clickhouseHost: ""10 clickhousePort: 812311 database: "default"12 user: ""
The ConfigMap name containing data-sources.json. One of the three fixed names limiting CloudBeaver to one instance per namespace.
- ConfigMap (linha 3). The ConfigMap name containing data-sources.json. One of the three fixed names limiting CloudBeaver to one instance per namespace.
- Trino (linha 4). Enables the Trino connection (scenario 3). The connection name comes from nameConnector.
- ClickHouse (linha 8). Enables the ClickHouse - TDP connection (scenario 2).
- Shared values (linha 11). database, user and the password in password apply to both connections.
Check copying on first startup
The init container log says whether connections entered the workspace.
kubectl logs -n <NAMESPACE> deploy/<RELEASE_NAME> -c sync-workspace-config
Success criteria
Data sources configuration copied successfully. and connections appear in the CloudBeaver navigator's TDP folder.If the log says Data sources configuration already exists, skipping copy.
The workspace was not clean. Reinstall the release (the PVC is removed too) or create the connection through the interface.
A ClickHouse user for CloudBeaver and the ClickHouse - TDP connection.
You want to deliver CloudBeaver with the ClickHouse - TDP connection in the TDP folder, using the ClickHouse JDBC driver already in the image. The tdp-clickhouse chart only accepts the default user from inside ClickHouse pods: a CloudBeaver connection with it fails with Authentication failed. Therefore, first create a dedicated ClickHouse user for CloudBeaver, with only the privileges users need.
ClickHouse deployed by the tdp-clickhouse chart in namespace <SHARED_NAMESPACE>, with release <CLICKHOUSE_RELEASE>.
The user password goes into the tdp-cloudbeaver-data-sources ConfigMap: anyone reading ConfigMaps in the namespace can read the password. Grant only necessary privileges and restrict namespace access.
The CloudBeaver connection to ClickHouse
- Users. Find pre-registered connections in the CloudBeaver navigator's TDP folder, without registering anything.
- CloudBeaver. Before CloudBeaver starts, the sync-workspace-config init container copies data-sources.json from the ConfigMap to the workspace, only if the workspace does not already have one. CloudBeaver then reads connections from the workspace.
- Fixed name: tdp-cloudbeaver-data-sources. The data-sources.json generated by the chart from dataSources, with connections and the TDP folder. It contains connection passwords. Chart default:
no connections. (tdp-cloudbeaver.dataSources) - Workspace. Receives data-sources.json on first startup. Subsequent interface changes remain there, and the chart does not overwrite them.
- ClickHouse - TDP. JDBC connection to the ClickHouse Service, with a user created for CloudBeaver. Chart default:
disabled. (tdp-cloudbeaver.dataSources.enabledClickhouse: true)
1tdp-cloudbeaver:2dataSources:3 enabled: true4 enabledClickhouse: true5 clickhouseHost: clickhouse-<CLICKHOUSE_RELEASE>.<SHARED_NAMESPACE>.svc.cluster.local6 clickhousePort: 81237 database: default8 user: cloudbeaver9 password: "<PASSWORD>"
Registers the ClickHouse - TDP connection in the TDP folder.
- Enables the connection (linha 4). Registers the ClickHouse - TDP connection in the TDP folder.
- Host (linha 5). The Service created by the ClickHouse chart: clickhouse-<CLICKHOUSE_RELEASE>, in the ClickHouse namespace.
- Port (linha 6). The ClickHouse HTTP port.
- User (linha 8). The user created for CloudBeaver in step 1. Do not use default.
- Password (linha 9). This user's password. It is stored in the connections ConfigMap.
Create a ClickHouse user for CloudBeaver
A user accepting connections from outside ClickHouse pods, with only necessary privileges.
A read-only example, run as default inside the ClickHouse pod:
PW=$(kubectl -n <SHARED_NAMESPACE> get secret <CLICKHOUSE_RELEASE>-credentials -o jsonpath='{.data.password}' | base64 -d)
kubectl -n <SHARED_NAMESPACE> exec -i chi-<CLICKHOUSE_RELEASE>-<CLICKHOUSE_RELEASE>-0-0-0 -- \
clickhouse-client --password "$PW" --multiquery <<'SQL'
CREATE USER IF NOT EXISTS cloudbeaver IDENTIFIED BY '<PASSWORD>' HOST ANY;
GRANT SELECT, SHOW ON *.* TO cloudbeaver;
SQL
SQL passes through a quoted heredoc, and the shell does not expand characters such as ! or $ in the password.
Apply the values file on first installation
The connection enters the workspace on CloudBeaver's first startup.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-cloudbeaver \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
--version pins the chart version. Without --version, Helm installs the latest published version.
Success criteria
If Authentication failed appears
Check the reason in the ClickHouse log and the corresponding symptom in When something goes wrong.
The Trino Service connection, with the name you choose.
You want to deliver CloudBeaver with a Trino connection in the TDP folder, with the name the team will see in the navigator. The connection points to the Trino Service in its namespace.
Trino deployed by the tdp-trino chart in namespace <SHARED_NAMESPACE>. See Trino Configuration.
database, user and password are shared by both connections.
The CloudBeaver connection to Trino
- Users. Find pre-registered connections in the CloudBeaver navigator's TDP folder, without registering anything.
- CloudBeaver. Before CloudBeaver starts, the sync-workspace-config init container copies data-sources.json from the ConfigMap to the workspace, only if the workspace does not already have one. CloudBeaver then reads connections from the workspace.
- Fixed name: tdp-cloudbeaver-data-sources. The data-sources.json generated by the chart from dataSources, with connections and the TDP folder. It contains connection passwords. Chart default:
no connections. (tdp-cloudbeaver.dataSources) - Workspace. Receives data-sources.json on first startup. Subsequent interface changes remain there, and the chart does not overwrite them.
- Trino. JDBC connection to the Trino Service, with the name defined in nameConnector. Chart default:
disabled. (tdp-cloudbeaver.dataSources.enabledTrino: true)
1tdp-cloudbeaver:2dataSources:3 enabled: true4 enabledTrino: true5 nameConnector: "Trino TDP"6 trinoHost: "<TRINO_SERVICE>.<SHARED_NAMESPACE>.svc.cluster.local"7 trinoPort: 80808 database: "default"9 user: "admin"
Registers the Trino connection in the TDP folder.
- Enables the connection (linha 4). Registers the Trino connection in the TDP folder.
- Connection name (linha 5). The name appearing in the CloudBeaver navigator.
- Host (linha 6). The Trino Service in the Trino namespace.
- Port (linha 7). The Trino Service port.
- User (linha 9). The connection user. With ClickHouse also enabled, it is shared by both connections.
Apply the values file on first installation
The connection enters the workspace on CloudBeaver's first startup.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-cloudbeaver \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
nameConnector.If the connection does not appear
The workspace was not clean. See the corresponding symptom in When something goes wrong.
S3 credentials, endpoint and bucket as pod environment variables.
The chart can inject S3 environment variables into the CloudBeaver pod, compatible with storage such as MinIO: credentials, region, endpoint and bucket. Credentials belong in a Secret you create. Variables go in extraEnvVars.
No extra variables: extraEnvVars empty.
extraEnvVars is a single list. If you also use external PostgreSQL for metadata, the CLOUDBEAVER_DB_* and S3 variables belong in the same list.
The S3 credentials from a Secret
- Users. Find pre-registered connections in the CloudBeaver navigator's TDP folder, without registering anything.
- CloudBeaver. Before CloudBeaver starts, the sync-workspace-config init container copies data-sources.json from the ConfigMap to the workspace, only if the workspace does not already have one. CloudBeaver then reads connections from the workspace.
- Fixed name: tdp-cloudbeaver-data-sources. The data-sources.json generated by the chart from dataSources, with connections and the TDP folder. It contains connection passwords. Chart default:
no connections. (tdp-cloudbeaver.dataSources) - Workspace. Receives data-sources.json on first startup. Subsequent interface changes remain there, and the chart does not overwrite them.
- S3 credentials Secret. Created by you with the access key and secret key. The pod receives them as environment variables. Chart default:
does not exist. - S3 endpoint. The address and bucket supplied in the S3_ENDPOINT and S3_BUCKET variables. (
tdp-cloudbeaver.extraEnvVars)
1tdp-cloudbeaver:2extraEnvVars:3 - name: AWS_ACCESS_KEY_ID4 valueFrom:5 secretKeyRef:6 name: cloudbeaver-s3-credentials7 key: access-key8 - name: AWS_SECRET_ACCESS_KEY9 valueFrom:10 secretKeyRef:11 name: cloudbeaver-s3-credentials12 key: secret-key13 - name: AWS_DEFAULT_REGION14 value: "us-east-1"15 - name: S3_ENDPOINT16 value: "<S3_ENDPOINT>"17 - name: S3_BUCKET18 value: "<S3_BUCKET>"
Read from the cloudbeaver-s3-credentials Secret, key access-key.
- Access key (linha 3). Read from the cloudbeaver-s3-credentials Secret, key access-key.
- Secret key (linha 8). Read from the same Secret, key secret-key.
- Region (linha 13). The S3 storage region.
- Endpoint (linha 15). The S3-compatible storage address.
- Bucket (linha 17). The bucket to use.
Create the Secret containing credentials
Keys remain in the Secret, outside the values file.
kubectl create secret generic cloudbeaver-s3-credentials \
--from-literal=access-key=<S3_ACCESS_KEY> \
--from-literal=secret-key=<S3_SECRET_KEY> \
-n <NAMESPACE>
Replace the placeholders with your keys. They remain only in the command.
Apply the values file
The pod is recreated with the variables.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-cloudbeaver \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
kubectl get pod -n <NAMESPACE> -o yaml | grep -A 20 "env:"
The AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION, S3_ENDPOINT and S3_BUCKET variables appear in the pod.
When something goes wrong
Troubleshooting
Paste the error message or choose a symptom. The answer includes the cause, what to do and the command.
- The connection does not appear in the TDP folder. Cause: The workspace already contained data-sources.json when the pod started: copying only happens in a clean workspace. What to do: If the init container log says Data sources configuration already exists, skipping copy., the workspace was not clean. Reinstall the release (the PVC is removed too) or create the connection through the interface.
- Authentication failed when opening the ClickHouse connection. Cause: The user only accepts local connections, like ClickHouse default. What to do: Use a user created with HOST ANY (ClickHouse scenario). The ClickHouse log shows the reason.
- Wrong connection password. Cause: dataSources.password is not the user's password in ClickHouse. What to do: Compare dataSources.password with the user's password in ClickHouse. Then reinstall the release or fix the password in the connection settings through the interface.
- Other problem. Cause: Start with pod status and namespace events. What to do: Events in chronological order show what prevents the pod from starting.
Integration parameters
Filter by name or group. The chart prefix is already filled in.
12 of 12 parameters
| Parameter | Description | Chart default |
|---|---|---|
tdp-cloudbeaver.dataSources.nameConnections | ConfigMap name containing data-sources.json | tdp-cloudbeaver-data-sources |
tdp-cloudbeaver.dataSources.databaseConnections | Default connection database (shared by ClickHouse and Trino) | default |
tdp-cloudbeaver.dataSources.userConnections | Connection user (shared by ClickHouse and Trino) | "" |
tdp-cloudbeaver.dataSources.passwordConnections | Connection password, stored in the ConfigMap (shared by ClickHouse and Trino) | not set |
tdp-cloudbeaver.dataSources.enabledClickhouseClickHouse | Registers the ClickHouse - TDP connection | false |
tdp-cloudbeaver.dataSources.clickhouseHostClickHouse | ClickHouse Service host | "" |
tdp-cloudbeaver.dataSources.clickhousePortClickHouse | ClickHouse HTTP port | 8123 |
tdp-cloudbeaver.dataSources.enabledTrinoTrino | Registers the Trino connection | false |
tdp-cloudbeaver.dataSources.nameConnectorTrino | Trino connection name | Trino TDP |
tdp-cloudbeaver.dataSources.trinoHostTrino | Trino Service host | "" |
tdp-cloudbeaver.dataSources.trinoPortTrino | Trino port | 8080 |
tdp-cloudbeaver.extraEnvVarsVariables | Extra pod environment variables (S3, external database) | [] |
Next steps
Configuration
CloudBeaver Configuration
First contact, resources, publishing at a URL and metadata in PostgreSQL.
Access
Security - CloudBeaver
Administrator password, LDAP, Active Directory and who creates connections.