- 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.
22 lines
531 B
Plaintext
22 lines
531 B
Plaintext
# Example Terraform variables for PostgreSQL Kubernetes deployment
|
|
|
|
# Kubernetes cluster connection
|
|
kube_config_path = "~/.kube/config"
|
|
kube_context = "linode-us-east"
|
|
|
|
# PostgreSQL configuration
|
|
postgres_image = "postgres:16.3"
|
|
postgres_db = "hapi_staging"
|
|
postgres_user = "postgres"
|
|
postgres_password = "changeme"
|
|
|
|
# Resource configuration
|
|
storage_size = "50Gi"
|
|
cpu_request = "500m"
|
|
cpu_limit = "1000m"
|
|
memory_request = "512Mi"
|
|
memory_limit = "1Gi"
|
|
|
|
# Environment
|
|
environment = "staging"
|