Skip to content

feat(up): keep k3s warm across hanzo down/up and pre-bake k3s airgap images - #105

Merged
zeekay merged 1 commit into
mainfrom
feat/up-warm-k3s-and-airgap
Nov 27, 2026
Merged

zeekay merged 1 commit into
mainfrom
feat/up-warm-k3s-and-airgap

Conversation

@zeekay

@zeekay zeekay commented Nov 27, 2026

Copy link
Copy Markdown
Member

Stops unnecessary kube-system and cloud image re-pulls on hanzo down && hanzo up:\n\n- Warm k3s by default: hanzo down scales deploy/cloud to 0 via a native Rust mTLS client against ~/.kube/hanzo.yaml, keeping k3s + containerd's image cache warm; pass --vm (--all) to shut down the microVM too.\n- Instant warm resume: hanzo up scales deploy/cloud back to 1 with zero image pulls (or Server-Side Applies updated image/env overrides).\n- Airgap checkpoint: pre-bakes k3s-airgap-images-<arch>.tar.zst into /var/lib/hanzo/agent/images/ in checkpoint k3s-2.0.2-airgap so even cold VM boots load kube-system images from disk.\n\nVerified: cargo test commands::up::tests (26/26 passed) and cargo clippy --locked --all-targets -- -D warnings (0 warnings).

…images

- Make `hanzo down` stop only the Hanzo Cloud deployment (replicas=0) via native mTLS k3s API client so k3s, kube-system, and containerd's image cache stay warm; add `--vm` (`--all`) for full microVM teardown.
- Make `hanzo up` resume a stopped cloud deployment in place (scale to 1 with zero image pulls, or Server-Side Apply on override flags) when k3s is already running.
- Pre-bake `k3s-airgap-images-<arch>.tar.zst` into `/var/lib/hanzo/agent/images/` in the checkpoint (`k3s-<ver>-airgap`) so cold VM boots never re-pull kube-system images from Docker Hub.
@zeekay
zeekay merged commit aae7e3c into main Nov 27, 2026
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