Test system upgrade with a new storage class being default
- Install a previous stable Longhorn on a K8s cluster.
- Create a storage class ‘longhorn-rep-2’ with replica 2 and make it default.
- Create some volumes with the above created storage class and attach them to workloads.
- Upgrade Longhorn to latest version.
- Longhorn should be upgraded.
- Storage class ‘longhorn-rep-2’ should be the default storage class.
- Create two volumes, one with ‘longhorn’ storage class and other with ‘longhorn-rep-2’.
- Verify the volumes are created as per their storage class.
[Edit]