nexent
nexent copied to clipboard
fix(deploy): load K8s images into containerd first
Problem
The offline image loader only invokes docker load. A kubeadm cluster using containerd cannot see images stored only in the Docker daemon.
Expected behavior
For Kubernetes installation, the loader prefers importing archives into containerd's k8s.io namespace with ctr; when ctr is unavailable, it falls back to Docker with an explicit compatibility warning.
Acceptance
- Kubernetes mode prefers
ctr -n k8s.io images import. - Docker remains the fallback only when
ctris unavailable. - Docker deployment mode continues to use Docker.
- Failures return non-zero and identify the failed archive/runtime.
- Tests cover runtime selection, fallback, and failure behavior.