Skip to content

docs: correct dev-environment topology in CLAUDE.md#524

Merged
ericfitz merged 1 commit into
mainfrom
docs/dev-topology-in-cluster-postgres
Jul 4, 2026
Merged

docs: correct dev-environment topology in CLAUDE.md#524
ericfitz merged 1 commit into
mainfrom
docs/dev-topology-in-cluster-postgres

Conversation

@ericfitz

@ericfitz ericfitz commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Summary

The dev environment was migrated to Docker Desktop Kubernetes (#520/#521), but CLAUDE.md still described a kind cluster with the database and Redis running as containers "external to the cluster."

That stale description directly caused a misdiagnosis during a debugging session: when the in-cluster PostgreSQL PVC came up empty, the real data was assumed lost — when it was actually stranded in the old host Docker volume (tmi-postgres-data) that the new topology no longer mounts.

Changes

Corrects both occurrences to reflect the real topology:

  • Default CLUSTER=docker-desktop (k3s also supported via CLUSTER=k3s)
  • Server, PostgreSQL, Redis, and NATS all run in-cluster in the tmi-platform namespace (Deployments + StatefulSets)
  • PostgreSQL data persists in a Kubernetes PVC (data-postgres-0), not a host Docker volume — re-provisioning the PVC starts from an empty database (the exact trap that caused the misdiagnosis)
  • With DB=oracle the database is an external managed Oracle ADB, not in-cluster
  • Orchestration is via scripts/devenv.py; manifests live under deployments/k8s/dev/<cluster>/

Docs-only change (Markdown) — no build/test/lint gates apply.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Kk9GxWS9EpazjbwBKfMpUX

The dev environment was migrated to Docker Desktop Kubernetes (#520/#521),
but CLAUDE.md still described a kind cluster with the database and Redis
running as containers "external to the cluster." That stale description
caused a misdiagnosis when the in-cluster PostgreSQL PVC came up empty:
the real data was assumed lost when it was actually stranded in the old
host Docker volume the new topology no longer mounts.

Update both occurrences to reflect reality:
- Default CLUSTER=docker-desktop (k3s also supported)
- server, PostgreSQL, Redis, and NATS all run in-cluster in the
  tmi-platform namespace (Deployments + StatefulSets)
- PostgreSQL data persists in a Kubernetes PVC (data-postgres-0), NOT a
  host Docker volume; re-provisioning the PVC starts from an empty DB
- With DB=oracle the database is an external managed Oracle ADB
- orchestration is via scripts/devenv.py; manifests under
  deployments/k8s/dev/<cluster>/

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk9GxWS9EpazjbwBKfMpUX
@ericfitz ericfitz merged commit b645bbc into main Jul 4, 2026
19 of 20 checks passed
@ericfitz ericfitz deleted the docs/dev-topology-in-cluster-postgres branch July 4, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant