fix/k8s-port-mappings-v5 #994

Open
AFDudley wants to merge 4 commits from fix/k8s-port-mappings-v5 into main

4 Commits

Author SHA1 Message Date
A. F. Dudley
26dea540e9 fix(k8s): use deployment namespace for pod and container lookups
Some checks failed
Lint Checks / Run linter (pull_request) Successful in 2m2s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m34s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Failing after 3m57s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 7m7s
Webapp Test / Run webapp test suite (pull_request) Successful in 3m14s
Smoke Test / Run basic test suite (pull_request) Successful in 2m20s
pods_in_deployment() and containers_in_pod() were hardcoded to search
the "default" namespace, but deployments are created in a per-deployment
namespace (laconic-{name}). This caused logs() to report "Pods not
running" even when pods were healthy.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 17:13:08 +00:00
A. F. Dudley
7cd5043a83 feat(k8s): add kind-mount-root for unified kind extraMount
When kind-mount-root is set in spec.yml, emit a single extraMount
mapping the root to /mnt instead of per-volume mounts. This allows
adding new volumes without recreating the kind cluster.

Volumes whose host path is under the root are skipped for individual
extraMounts and their PV paths resolve to /mnt/{relative_path}.
Volumes outside the root keep individual extraMounts as before.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 16:41:16 +00:00
A. F. Dudley
f305214ce1 add local test runner script
Some checks failed
Lint Checks / Run linter (pull_request) Successful in 2m17s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m1s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Failing after 5m14s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Failing after 6m49s
Webapp Test / Run webapp test suite (pull_request) Successful in 7m51s
Smoke Test / Run basic test suite (pull_request) Successful in 8m5s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 05:28:55 +00:00
A. F. Dudley
fb69cc58ff feat(k8s): map compose service ports to Kind extraPortMappings and support hostNetwork
Kind's extraPortMappings only included ports 80/443 for Caddy. Compose
service ports (RPC, gossip, UDP) were never forwarded, making them
unreachable from the host. Also adds hostNetwork/dnsPolicy to the k8s
pod spec when any compose service uses network_mode: host.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 05:28:52 +00:00