!https://github.com/longhorn/longhorn/discussions/6964
Posts tagged: longhorn
All posts with the tag "longhorn"
Changing k8s Storage Class - Migration Job
I’m setting up longhorn in my homelab, and I ran into an issue where I initially setup some pvcs under longhorn, and later realized that to get longhorn to snapshot and backup I needed to hand edit volumes after the fact or change storage class. I’m all in on gitops so option 1 was not an option. So changing storageclass it is.
Now the issue is that you CANNOT mutate storageclass on a provisioned pvc, it is an immutable attribute.
This migration job will create a new pvc with the new storageclass and move the data from the old pvc to the new pvc.
...