timescaledb
by CloudPirates
TimescaleDB - The Open Source Time-Series Database for PostgreSQL
About this chart
TimescaleDB
A Helm chart for TimescaleDB - The Open Source Time-Series Database for PostgreSQL. TimescaleDB is built on PostgreSQL and provides advanced time-series capabilities including automatic partitioning, columnar compression, continuous aggregates, and more.
Prerequisites
- Kubernetes 1.24+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure (if persistence is enabled)
Installing the Chart
To install the chart with the release name my-timescaledb:
helm install my-timescaledb oci://registry-1.docker.io/cloudpirates/timescaledb
To install with custom values:
helm install my-timescaledb oci://registry-1.docker.io/cloudpirates/timescaledb -f my-values.yaml
Or install directly from the local chart:
helm install my-timescaledb ./charts/timescaledb
The command deploys TimescaleDB on the Kubernetes cluster in the default configuration. The Configuration section lists the parameters that can be configured during installation.
Uninstalling the Chart
To uninstall/delete the my-timescaledb deployment:
helm uninstall my-timescaledb
The command removes all the Kubernetes components associated with the chart and deletes the release.
Security & Signature Verification
This Helm chart is cryptographically signed with Cosign to ensure authenticity and prevent tampering.
Public Key:
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE5U+rM2d3hDjgP5T3cLShuuQIU9vR
Z4/G+Nug6q5vRa+C3qUA1wXjbaJFAfcIrv5VjmYAYOj13shnPpp3Zh4fnQ==
-----END PUBLIC KEY-----
To verify the helm chart before installation, copy the public key to the file cosign.pub and run cosign:
cosign verify --key cosign.pub registry-1.docker.io/cloudpirates/timescaledb:<version>
Configuration
The following table lists the configurable parameters of the TimescaleDB chart and their default values.
Global parameters
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
Image configuration
| Parameter | Description | Default |
|---|---|---|
image.registry | TimescaleDB image registry | docker.io |
image.repository | TimescaleDB image repository | timescale/timescaledb |
image.tag | TimescaleDB image tag (immutable tags are recommended) | "2.23.1-pg17@sha256:a6581100f2f1cd1e03a29a94a49c488a174de65e57301c04de255804645e5a31" |
image.pullPolicy | TimescaleDB image pull policy | Always |
Common configuration
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of TimescaleDB replicas to deploy (Note: TimescaleDB doesn't support multi-master replication by default) | 1 |
nameOverride | String to partially override timescaledb.fullname | "" |
fullnameOverride | String to fully override timescaledb.fullname | "" |
namespaceOverride | String to override the namespace for all resources | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
Pod labels
| Parameter | Description | Default |
|---|---|---|
podLabels | Pod labels | {} |
Security Context
| Parameter | Description | Default |
|---|---|---|
podSecurityContext.fsGroup | Group ID for the volumes of the pod | 999 |
podSecurityContext.seccompProfile | Seccomp profile for the pod | {type: RuntimeDefault} |
containerSecurityContext.allowPrivilegeEscalation | Enable container privilege escalation | false |
containerSecurityContext.runAsNonRoot | Configure the container to run as a non-root user | true |
containerSecurityContext.runAsUser | User ID for the TimescaleDB container | 999 |
containerSecurityContext.runAsGroup | Group ID for the TimescaleDB container | 999 |
containerSecurityContext.readOnlyRootFilesystem | Mount container root filesystem as read-only | false |
containerSecurityContext.capabilities.drop | Linux capabilities to be dropped | ["ALL"] |
priorityClassName | Priority class for the timescaledb instance | "" |
TimescaleDB Authentication
| Parameter | Description | Default |
|---|---|---|
auth.postgresPassword | Password for the postgres admin user. If not set, a random password will be generated | "" |
auth.existingSecret | Name of existing secret to use for TimescaleDB credentials | "" |
auth.secretKeys.adminPasswordKey | Name of key in existing secret to use for TimescaleDB credentials | "postgres-password" |
TimescaleDB Configuration
| Parameter | Description | Default |
|---|---|---|
config.postgresqlSharedPreloadLibraries | Shared preload libraries (comma-separated list) | "timescaledb" |
config.postgresqlMaxConnections | Maximum number of connections | 100 |
config.postgresqlSharedBuffers | Amount of memory the database server uses for shared memory buffers | "" |
config.postgresqlEffectiveCacheSize | Effective cache size | "" |
config.postgresqlWorkMem | Amount of memory to be used by internal sort operations and hash tables | "" |
config.postgresqlMaintenanceWorkMem | Maximum amount of memory to be used by maintenance operations | "" |
config.postgresqlWalBuffers | Amount of memory used in shared memory for WAL data | "" |
config.postgresqlCheckpointCompletionTarget | Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval | "" |
config.postgresqlRandomPageCost | Sets the planner's estimate of the cost of a non-sequentially-fetched disk page | "" |
config.postgresqlLogStatement | Sets the type of statements logged | "" |
config.postgresqlLogMinDurationStatement | Sets the minimum execution time above which statements will be logged | "" |
config.timescaledbTelemetry | Enable/disable TimescaleDB telemetry | "off" |
config.timescaledbMaxBackgroundWorkers | Maximum number of TimescaleDB background workers | 8 |
config.extraConfig | Additional TimescaleDB configuration parameters | [] |
config.existingConfigmap | Name of existing ConfigMap with TimescaleDB configuration | "" |
Service configuration
| Parameter | Description | Default |
|---|---|---|
service.type | TimescaleDB service type | ClusterIP |
service.port | TimescaleDB service port | 5432 |
service.targetPort | TimescaleDB container port | 5432 |
service.annotations | Service annotations | {} |
Ingress configuration
| Parameter | Description | Default |
|---|---|---|
ingress.enabled | Enable ingress record generation for TimescaleDB | false |
ingress.className | IngressClass that will be used to implement the Ingress | "" |
ingress.annotations | Additional annotations for the Ingress resource | {} |
ingress.hosts[0].host | Hostname for TimescaleDB ingress | timescaledb.local |
ingress.hosts[0].paths[0].path | Path for TimescaleDB ingress | / |
ingress.hosts[0].paths[0].pathType | Path type for TimescaleDB ingress | Prefix |
ingress.tls | TLS configuration for TimescaleDB ingress | [] |
Resources
| Parameter | Description | Default |
|---|---|---|
resources | The resources to allocate for the container | {} |
Persistence
| Parameter | Description | Default |
|---|---|---|
persistence.enabled | Enable persistence using Persistent Volume Claims | true |
persistence.storageClass | Persistent Volume storage class | "" |
persistence.annotations | Persistent Volume Claim annotations | {} |
persistence.labels | Labels for persistent volume claims | {} |
persistence.size | Persistent Volume size | 8Gi |
persistence.accessModes | Persistent Volume access modes | ["ReadWriteOnce"] |
persistence.existingClaim | The name of an existing PVC to use for persistence | "" |
Liveness and readiness probes
| Parameter | Description | Default |
|---|---|---|
livenessProbe.enabled | Enable livenessProbe on TimescaleDB containers | true |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 30 |
livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
livenessProbe.failureThreshold | Failure threshold for livenessProbe | 3 |
livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
readinessProbe.enabled | Enable readinessProbe on TimescaleDB containers | true |
readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 5 |
readinessProbe.periodSeconds | Period seconds for readinessProbe | 5 |
readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 5 |
readinessProbe.failureThreshold | Failure threshold for readinessProbe | 3 |
readinessProbe.successThreshold | Success threshold f |
Deploy timescaledb with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has timescaledb 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 charttimescaledb is pinned at v0.14.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