Skip to content

doc(kubernetes): J1: map the Tamanu namespace layout Canopy's checks need - #497

Open
passcod wants to merge 1 commit into
workhorse/b1from
workhorse/j1
Open

doc(kubernetes): J1: map the Tamanu namespace layout Canopy's checks need#497
passcod wants to merge 1 commit into
workhorse/b1from
workhorse/j1

Conversation

@passcod

@passcod passcod commented Aug 18, 2026

Copy link
Copy Markdown
Member

Description

Research spike: adds .workhorse/plans/j1/plan.md, mapping where every input Canopy's Kubernetes checks and setup need actually lives inside a Tamanu namespace. It's a documentation-only change (one new markdown file) — no application code is touched.

The plan covers, per namespace:

  • how centrals and facilities are identified and enumerated (the positional facility-<N> resource prefix vs. the facility's actual id/host, and how to join the two) for the server-identity picker
  • each server's workloads by duty (API, sync, tasks, FHIR refresh/resolver) with their Deployment names and labels, for readiness/crashloop/resource-pressure checks
  • the Gateway/HTTPRoute and front-end API service used for the liveness check
  • the PVCs and CNPG Cluster.spec.storage.size used for the storage check
  • each server's CNPG Postgres cluster, connection services, and the CNPG-managed secret (<prefix>-db-app) used for the DB harvest

It closes with a cross-check table tying these inputs back to the checks in the K8S monitoring spec, and a list of caveats/open items (positional facility prefixes, zero-replica duties being valid, Gateway-vs-Ingress migration, TTL hibernation, and the RBAC read set this implies) for the L1/M1/N1 implementation cards that follow.

Test plan

Documentation-only change; no code or behaviour to test. Reviewed for accuracy against the tamanu/on-k8s Pulumi stack source, ghaCdHelpers.mjs, and the ops k8s specs it cites.

Research spike output: required-inputs list mapped onto real resource
names, labels, and CNPG conventions in a Tamanu namespace, sourced from
the ops tamanu/on-k8s Pulumi stack. Reference for L1/M1/N1.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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