Migrate PostgreSQL to Hetzner volumes and add migration runbook

This commit is contained in:
2026-07-06 13:53:10 +03:00
parent a7c6847c95
commit aa42b86833
7 changed files with 319 additions and 76 deletions
@@ -5,6 +5,8 @@ metadata:
namespace: database
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: postgres-hetzner
@@ -15,15 +17,22 @@ spec:
spec:
containers:
- name: postgres
image: 10.0.2.119:5000/custom-postgres:latest
image: pgvector/pgvector:pg18-trixie
imagePullPolicy: IfNotPresent
volumeMounts:
- name: postgres-data
mountPath: /var/lib/postgresql
env:
- name: POSTGRES_PASSWORD
value: "jd@wXseh9z7vM@9"
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_PASSWORD
- name: POSTGRES_USER
value: admin
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_USER
volumes:
- name: postgres-data
persistentVolumeClaim: