- Create infrastructure for PostgreSQL StatefulSet in Kubernetes - Implement environment-specific configurations (staging/production) - Add Kustomize overlays for deterministic deployments - Document deployment process in AGENTS.md and infra/k8s/README.md - Include Makefile and helper scripts for easy management New directories: - infra/k8s/base/ - Shared resources (StatefulSet, Service, PVC, Namespace) - infra/k8s/staging/ - Staging environment overlay - infra/k8s/production/ - Production environment overlay Key files: - infra/k8s/base/kustomization.yaml - infra/k8s/staging/kustomization.yaml - infra/k8s/production/kustomization.yaml - infra/k8s/README.md Resources are prefixed by environment (staging-, production-) and deployed to the postgres namespace.
20 lines
547 B
YAML
20 lines
547 B
YAML
# Standalone PersistentVolumeClaim for PostgreSQL
|
|
# Note: This PVC is separate from the StatefulSet's volumeClaimTemplates.
|
|
# It is currently unused in the active deployment but can be used for
|
|
# backup, migration, or testing purposes. The primary storage is provided
|
|
# by volumeClaimTemplates in statefulset.yaml.
|
|
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: postgres-pvc
|
|
labels:
|
|
app: postgres
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
storageClassName: linode-block-storage
|
|
resources:
|
|
requests:
|
|
storage: 50Gi
|