timescaledb

by CloudPirates

Helm chartv0.14.0App 2.32.0Apache-2.0Verified publisher

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

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]

Image configuration

ParameterDescriptionDefault
image.registryTimescaleDB image registrydocker.io
image.repositoryTimescaleDB image repositorytimescale/timescaledb
image.tagTimescaleDB image tag (immutable tags are recommended)"2.23.1-pg17@sha256:a6581100f2f1cd1e03a29a94a49c488a174de65e57301c04de255804645e5a31"
image.pullPolicyTimescaleDB image pull policyAlways

Common configuration

ParameterDescriptionDefault
replicaCountNumber of TimescaleDB replicas to deploy (Note: TimescaleDB doesn't support multi-master replication by default)1
nameOverrideString to partially override timescaledb.fullname""
fullnameOverrideString to fully override timescaledb.fullname""
namespaceOverrideString to override the namespace for all resources""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}

Pod labels

ParameterDescriptionDefault
podLabelsPod labels{}

Security Context

ParameterDescriptionDefault
podSecurityContext.fsGroupGroup ID for the volumes of the pod999
podSecurityContext.seccompProfileSeccomp profile for the pod{type: RuntimeDefault}
containerSecurityContext.allowPrivilegeEscalationEnable container privilege escalationfalse
containerSecurityContext.runAsNonRootConfigure the container to run as a non-root usertrue
containerSecurityContext.runAsUserUser ID for the TimescaleDB container999
containerSecurityContext.runAsGroupGroup ID for the TimescaleDB container999
containerSecurityContext.readOnlyRootFilesystemMount container root filesystem as read-onlyfalse
containerSecurityContext.capabilities.dropLinux capabilities to be dropped["ALL"]
priorityClassNamePriority class for the timescaledb instance""

TimescaleDB Authentication

ParameterDescriptionDefault
auth.postgresPasswordPassword for the postgres admin user. If not set, a random password will be generated""
auth.existingSecretName of existing secret to use for TimescaleDB credentials""
auth.secretKeys.adminPasswordKeyName of key in existing secret to use for TimescaleDB credentials"postgres-password"

TimescaleDB Configuration

ParameterDescriptionDefault
config.postgresqlSharedPreloadLibrariesShared preload libraries (comma-separated list)"timescaledb"
config.postgresqlMaxConnectionsMaximum number of connections100
config.postgresqlSharedBuffersAmount of memory the database server uses for shared memory buffers""
config.postgresqlEffectiveCacheSizeEffective cache size""
config.postgresqlWorkMemAmount of memory to be used by internal sort operations and hash tables""
config.postgresqlMaintenanceWorkMemMaximum amount of memory to be used by maintenance operations""
config.postgresqlWalBuffersAmount of memory used in shared memory for WAL data""
config.postgresqlCheckpointCompletionTargetTime spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval""
config.postgresqlRandomPageCostSets the planner's estimate of the cost of a non-sequentially-fetched disk page""
config.postgresqlLogStatementSets the type of statements logged""
config.postgresqlLogMinDurationStatementSets the minimum execution time above which statements will be logged""
config.timescaledbTelemetryEnable/disable TimescaleDB telemetry"off"
config.timescaledbMaxBackgroundWorkersMaximum number of TimescaleDB background workers8
config.extraConfigAdditional TimescaleDB configuration parameters[]
config.existingConfigmapName of existing ConfigMap with TimescaleDB configuration""

Service configuration

ParameterDescriptionDefault
service.typeTimescaleDB service typeClusterIP
service.portTimescaleDB service port5432
service.targetPortTimescaleDB container port5432
service.annotationsService annotations{}

Ingress configuration

ParameterDescriptionDefault
ingress.enabledEnable ingress record generation for TimescaleDBfalse
ingress.classNameIngressClass that will be used to implement the Ingress""
ingress.annotationsAdditional annotations for the Ingress resource{}
ingress.hosts[0].hostHostname for TimescaleDB ingresstimescaledb.local
ingress.hosts[0].paths[0].pathPath for TimescaleDB ingress/
ingress.hosts[0].paths[0].pathTypePath type for TimescaleDB ingressPrefix
ingress.tlsTLS configuration for TimescaleDB ingress[]

Resources

ParameterDescriptionDefault
resourcesThe resources to allocate for the container{}

Persistence

ParameterDescriptionDefault
persistence.enabledEnable persistence using Persistent Volume Claimstrue
persistence.storageClassPersistent Volume storage class""
persistence.annotationsPersistent Volume Claim annotations{}
persistence.labelsLabels for persistent volume claims{}
persistence.sizePersistent Volume size8Gi
persistence.accessModesPersistent Volume access modes["ReadWriteOnce"]
persistence.existingClaimThe name of an existing PVC to use for persistence""

Liveness and readiness probes

ParameterDescriptionDefault
livenessProbe.enabledEnable livenessProbe on TimescaleDB containerstrue
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe30
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
livenessProbe.failureThresholdFailure threshold for livenessProbe3
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.enabledEnable readinessProbe on TimescaleDB containerstrue
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe5
readinessProbe.periodSecondsPeriod seconds for readinessProbe5
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe5
readinessProbe.failureThresholdFailure threshold for readinessProbe3
readinessProbe.successThresholdSuccess 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.

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