fix timescale version

This commit is contained in:
Hoang Nguyen
2026-05-06 11:36:45 +02:00
parent aca2d6be33
commit 6384d2ba7f
6 changed files with 19 additions and 22 deletions

View File

@@ -4,20 +4,15 @@ metadata:
name: timescale-cluster
spec:
instances: 3
imageName: timescale/timescaledb:2.15.3-pg15
# ✅ Initiales Setup
imageName: ghcr.io/cloudnative-pg/postgresql:15
bootstrap:
initdb:
database: app
owner: app
# ✅ Storage
owner: app
postInitSQL:
- CREATE EXTENSION IF NOT EXISTS timescaledb;
storage:
size: 50Gi
# ✅ Ressourcen (wichtig!)
resources:
requests:
memory: "2Gi"
@@ -25,17 +20,11 @@ spec:
limits:
memory: "4Gi"
cpu: "2"
# ✅ High Availability
affinity:
enablePodAntiAffinity: true
topologyKey: kubernetes.io/hostname
# ✅ Monitoring
monitoring:
enablePodMonitor: true
# ✅ PostgreSQL / Timescale Tuning
postgresql:
parameters:
max_connections: "100" # mehr Verbindungen 200
@@ -47,6 +36,7 @@ spec:
checkpoint_completion_target: "0.9"
random_page_cost: "1.1" # SSD optimiert
effective_io_concurrency: "200"
shared_preload_libraries: "timescaledb"
backup:
retentionPolicy: "7d" # Backup älter als 7 Tage -> automatisch gelöscht
barmanObjectStore:
@@ -55,9 +45,9 @@ spec:
s3Credentials:
accessKeyId:
name: s3-creds
key: ACCESS_KEY_ID
key: S3_ACCESS_KEY_ID
secretAccessKey:
name: s3-creds
key: SECRET_ACCESS_KEY
key: S3_SECRET_ACCESS_KEY
wal:
compression: gzip

View File

@@ -11,7 +11,7 @@ data:
name: timescale-restore-test
spec:
instances: 1
imageName: timescale/timescaledb:2.15.3-pg15
imageName: ghcr.io/cloudnative-pg/postgresql:15
bootstrap:
recovery:
source: timescale-cluster