Watch
0
0
Fork
You've already forked hyperhive
0

docs: migrate status reads the gate from the pod's status

This commit is contained in:
atlas 2026-11-22 20:44:16 +01:00 • committed by mara
commit 481cd79607

View file

@ -33,6 +33,7 @@ The command moves the swarm's own daemons and the queue into the cluster:
| `services.hyperhive.deploy.<svc>.runtime` | `"host"` or `"k8s"`, per service |
| `/etc/hyperhive/migrate.json` | the module's render of each service's runtime, state paths, PVC |
| `/var/lib/hyperhive-migrate/` | host record: pre-move snapshots and copy digests, root `0700` |
| `SWARMCTL_KUBECTL`, `SWARMCTL_KUBECONFIG` | the `swarmctl` wrapper's `kubectl` and the k3s admin kubeconfig |
| `.hyperhive-migrated` in a PVC | the copy marker the pod's start gate checks for |
| `swarmctl migrate` `status` / `rollback` / `finish` | the verbs |
@ -154,12 +155,17 @@ stopped, and the loop offers retry, skip or quit on a failed step.
### What's observed and what's recorded
| fact | observed from |
| ---------------------------------- | --------------------------------------------------------- |
| where the config wants the service | `/etc/hyperhive/migrate.json`, which the rebuild renders |
| host unit active or not | `systemctl is-active` |
| workload, pod phase, Ready | `kubectl` |
| copy done | `.hyperhive-migrated` in the PVC, read through a copy pod |
| fact | observed from |
| ---------------------------------- | ---------------------------------------------------------- |
| where the config wants the service | `/etc/hyperhive/migrate.json`, which the rebuild renders |
| host unit active or not | `systemctl is-active` |
| workload, pod phase, Ready | `kubectl` |
| copy done | the pod's `state-gate` init container, in the pod's status |
`swarmctl migrate status` reads the gate's answer from the pod's status: the
gate exited 0 when the marker is in the volume, and a refusal puts its reason
in the container's termination message. Status never starts a pod, so it
creates nothing and reads only.
Two facts vanish once the host unit stops, so `/var/lib/hyperhive-migrate/`
records them: the step 1 snapshot, and the digest of the copied tree. Without