Files
hapi/infra/k8s/outputs.tf
T
Bobby 88235fc824 feat: Add PostgreSQL Kubernetes deployment with Kustomize
- 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.
2026-11-18 15:29:00 -05:00

32 lines
887 B
Terraform

# Outputs for PostgreSQL Kubernetes module
output "statefulset_name" {
description = "Name of the PostgreSQL StatefulSet"
value = kubernetes_stateful_set_v1.postgres.metadata[0].name
}
output "service_name" {
description = "Name of the PostgreSQL Service"
value = kubernetes_service_v1.postgres.metadata[0].name
}
output "service_endpoint" {
description = "Endpoint for the PostgreSQL Service"
value = kubernetes_service_v1.postgres.status[0].load_balancer[0].ingress[0].ip
}
output "pvc_name" {
description = "Name of the PostgreSQL PVC"
value = kubernetes_persistent_volume_claim_v1.postgres.metadata[0].name
}
output "namespace" {
description = "Namespace where PostgreSQL resources are deployed"
value = "postgres"
}
output "postgres_image" {
description = "PostgreSQL Docker image used"
value = var.postgres_image
}