Repository navigation
Description
Problem
devops k8s volume move makes <claim>-move and the claim made again with the access modes of the old claim. A claim that several pods mount on one node, such as a local-path claim of three Deployments, must become ReadWriteMany on a replicated class: a Longhorn ReadWriteOnce volume attaches to one node only, so a pod on another node cannot start, and a rolling update can deadlock. The access modes of a bound claim are immutable, so only a move can change them, and the claim must keep its name.
The owner chose ReadWriteMany on longhorn on 2026-11-27 for danielpetty-com-pixelfed/pixelfed-storage (Pixelfed web, horizon and scheduler; dan-petty/danielpetty.com#108) and devops/roadmap-service-home (the Service and its planner Jobs; dan-petty/homelab#579).
Evidence of 2026-11-27 on the homelab: a longhorn claim with ReadWriteMany mounted in two pods on two storage nodes through the Longhorn share manager; a chown 999:1000 and a chown 33:33 as root in one pod showed the same owners and modes in the other pod.
Change
- Add
--access-mode MODEtodevops k8s volume move.<claim>-moveand the claim made again getaccessModes: [MODE]. Without it, they keep the access modes of the old claim, as now. --planprints the access modes of the old claim and the target access mode;--dry-runshows them in the manifests.
Acceptance criteria
- A failing test first: a plan with
--storage-class longhorn --access-mode ReadWriteManymakes the move claim and the claim made again withaccessModes: [ReadWriteMany]. - A live move of a test claim of two Deployments to
longhornwithReadWriteManyends with both pods Running on storage nodes and the data the same. devops cichecks pass.
Related: #7382.
Activity
devops-cli-service commentedon Nov 27, 2026
Released in v0.229.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.229.0
devops-cli-service commentedon Nov 27, 2026
Live since 2026-11-27 20:34 UTC