ClickhouseDatabase
Prerequisites¶
- A Kubernetes cluster with the operator installed using helm, kubectl or kind (for local development).
- A Kubernetes Secret with an Aiven authentication token.
Required permissions¶
To create and manage this resource, you must have the appropriate roles or permissions. See the Aiven documentation for details on managing permissions.
This resource uses the following API operations, and for each operation, any of the listed permissions is sufficient:
| Operation | Permissions |
|---|---|
| ServiceClickHouseDatabaseCreate | service:data:write |
| ServiceClickHouseDatabaseDelete | service:data:write |
| ServiceClickHouseDatabaseList | service:data:write |
| ServiceGet | project:services:read |
Usage example¶
Apply the resource with:
Verify the newly created ClickhouseDatabase:
The output is similar to the following:
ClickhouseDatabase¶
ClickhouseDatabase is the Schema for the databases API.
Required
apiVersion(string). Valueaiven.io/v1alpha1.kind(string). ValueClickhouseDatabase.metadata(object). Data that identifies the object, including anamestring and optionalnamespace.spec(object). ClickhouseDatabaseSpec defines the desired state of ClickhouseDatabase. See below for nested schema.
spec¶
Appears on ClickhouseDatabase.
ClickhouseDatabaseSpec defines the desired state of ClickhouseDatabase.
Required
project(string, Immutable, Pattern:^[a-zA-Z0-9_-]+$, MaxLength: 63). Identifies the project this resource belongs to.serviceName(string, Immutable, Pattern:^[a-z][-a-z0-9]+$, MaxLength: 63). Specifies the name of the service that this resource belongs to.
Optional
authSecretRef(object). Authentication reference to Aiven token in a secret. See below for nested schema.-
databaseName(string, Immutable, MaxLength: 63). Specifies the Clickhouse database name. Defaults tometadata.nameif omitted.Note
metadata.nameis ASCII-only. For UTF-8 names, usespec.databaseName, but ASCII is advised for compatibility.
authSecretRef¶
Appears on spec.
Authentication reference to Aiven token in a secret.
Required