infra: rename pal-e-production → pal-e-app in monitoring + network policies #287
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-platform!287
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "114-rename-pal-e-production-platform"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Renames all
pal-e-productionreferences topal-e-appacross the platform layer -- monitoring probes, golden signals dashboard, embedding worker ServiceMonitor/Service, network policies, database namespace data source, and ops module.Changes
terraform/modules/monitoring/main.tf-- removed duplicatepal-e-productionblackbox probe (pal-e-app probe already exists), renamed dashboard ConfigMap and file reference, updated embedding worker ServiceMonitor namespace and labelsterraform/dashboards/pal-e-production-golden-signals.json→pal-e-app-golden-signals.json-- renamed file, replaced all 14 PromQL namespace references, title, uid, and tagsterraform/modules/ops/main.tf-- updated comment and embedding worker service labels/selectorsterraform/modules/ops/variables.tf-- updated variable descriptionterraform/modules/database/main.tf-- updated comments and namespace name frompal-e-productiontopal-e-appterraform/modules/database/outputs.tf-- updated output descriptionterraform/network-policies.tf-- updated postgres and ollama netpol namespace selectorsterraform/secrets.auto.tfvars.example-- updated section commentTest Plan
grep -r pal-e-production terraform/ --include='*.tf' --include='*.json' --include='*.example'returns zero hitstofu fmtpasses with no changestofu planwill show ConfigMap name change, probe removal, netpol updates, and namespace data source change (requires apply coordination with pal-e-services namespace rename)Review Checklist
grep -r pal-e-production terraform/returns zero hitstofu fmt -recursivecleanRelated Notes
Related
PR #287 Review
DOMAIN REVIEW
Tech stack: Terraform (HCL + JSON), Kubernetes manifests, Prometheus/Grafana dashboards, network policies.
Terraform style: Resource identifiers (
pal_e_production_dashboard,pal_e_production,pal_e_production_namespace) are intentionally preserved to avoid state drift -- correct approach. Only the kubernetes-level metadata names and label values change. Themovedblock interraform/main.tf:258-261already referencespal_e_production_dashboard, so the ConfigMap name change (pal-e-production-dashboard->pal-e-app-dashboard) will be an in-place update on the ConfigMap resource. No state-breaking changes.Dashboard JSON: All 14 PromQL namespace references updated. Title, uid, and tags updated. File renamed. The
file()reference inmonitoring/main.tfupdated to match. Clean.Network policies: Both postgres and ollama netpol namespace selectors updated from
pal-e-productiontopal-e-app. Consistent.Blackbox probe removal: The old
pal-e-productionprobe monitoredpal-e-docs.pal-e-production.svc.cluster.local:8000/healthz(the pal-e-docs backend). The existingpal-e-appprobe monitorspal-e-app.pal-e-app.svc.cluster.local:3000(the SvelteKit frontend). These are different services on different ports. Removing the old probe without updating it means the pal-e-docs backend loses its blackbox health probe entirely. This could be intentional (if pal-e-docs gets its own probe via pal-e-services), but it is worth confirming. See nit below.ServiceMonitor + Service labels:
pal-e-production-embedding-worker->pal-e-app-embedding-workeracross monitoring and ops modules. ThenamespaceSelector.matchNamesupdated topal-e-app. This requires that the pal-e-services side also updates the embedding worker deployment labels to matchapp: pal-e-app-embedding-worker, otherwise the ServiceMonitor will stop scraping. Cross-repo coordination noted in the PR body -- acceptable.BLOCKERS
None.
This is a rename/refactor PR with no new functionality, so test coverage requirements do not apply. No user input handling, no secrets, no auth logic.
NITS
Lost pal-e-docs probe coverage: The removed
pal-e-productionprobe (pal-e-docs:8000/healthz) is not replaced. The survivingpal-e-appprobe targets port 3000 (SvelteKit), not port 8000 (FastAPI). If pal-e-docs should still have a blackbox probe, a new entry like{ name = "pal-e-docs", url = "http://pal-e-docs.pal-e-app.svc.cluster.local:8000/healthz", labels = { service = "pal-e-docs", tier = "app" } }should be added. If this is intentionally deferred to another ticket, noting it here for traceability. (terraform/modules/monitoring/main.tf)Terraform identifier rename deferred: The HCL resource names (
pal_e_production_dashboard,pal_e_production_namespace, variablepal_e_production_namespace) still use the old naming. This is the correct choice for this PR (avoids state moves), but a follow-up to rename these withmovedblocks would improve readability. Low priority.SOP COMPLIANCE
114-rename-pal-e-production-platformmatches pal-e-deployments#114)forgejo_admin/pal-e-deployments#114)PROCESS OBSERVATIONS
pal-e-app-embedding-worker) require matching updates in the pal-e-services/deployments side. Apply order matters.pal-e-production-golden-signals->pal-e-app-golden-signals) will break any saved Grafana bookmarks or alert rules that reference the old UID. Low risk but worth noting for ops awareness.VERDICT: APPROVED