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

@@ -5,3 +5,10 @@
Use: Use:
kubectl apply -f restore-latest.yaml kubectl apply -f restore-latest.yaml
## TODOS
- Prometheus Stack integrieren
- Alerts an Teams schicken
- Dashboard für Backups in Grafana bauen
- ONE Click restore

View File

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

View File

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

View File

@@ -5,7 +5,7 @@ metadata:
namespace: database namespace: database
spec: spec:
instances: 1 instances: 1
imageName: timescale/timescaledb:2.15.3-pg15 imageName: ghcr.io/cloudnative-pg/postgresql:15
bootstrap: bootstrap:
recovery: recovery:
source: timescale-cluster source: timescale-cluster

View File

@@ -5,7 +5,7 @@ metadata:
namespace: database namespace: database
spec: spec:
instances: 1 instances: 1
imageName: timescale/timescaledb:2.15.3-pg15 imageName: ghcr.io/cloudnative-pg/postgresql:15
bootstrap: bootstrap:
recovery: recovery:
source: timescale-cluster source: timescale-cluster

View File

@@ -5,7 +5,7 @@ metadata:
namespace: database namespace: database
spec: spec:
instances: 1 instances: 1
imageName: timescale/timescaledb:2.15.3-pg15 imageName: ghcr.io/cloudnative-pg/postgresql:15
bootstrap: bootstrap:
recovery: recovery:
source: timescale-cluster source: timescale-cluster