docs: migrate status reads the gate from the pod's status
This commit is contained in:
parent
07358984e9
commit
d6d30df90b
1 changed files with 46 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue