Changing the CRI, CSI, or CNI provider on a kURL install is possible by migrating a KOTS application to a new cluster.
If you're looking to make the move from one CSI provisioner (Longhorn, OpenEBS, or Rook) to another, be sure to consult the Migrating CSI page.
- The KOTS application must be configured to support full snapshots.
- Velero must be configured to use an external snapshot destination accessible to both the old and new clusters, such as S3.
- Both the old and new clusters must have the same airgap status. Migrating from airgap to online clusters or vice versa is not supported.
- The velero add-on version must be at least 1.5.1.
- The KOTS add-on version must be at least 1.45.0 in order for the KOTS Admin Console certificate to be migrated.
- If the application makes direct use of an object store add-on such as Rook or MinIO, it must use backup and restore hooks to migrate buckets with required data from the old to the new cluster. Only the kotsadm and docker-registry buckets will be migrated automatically. See here for an example of how the registry add-on uses hooks to migrate its bucket.
- For airgapped installs, both the old and new clusters must have the same versions of the KOTS and registry add-ons.
- Old and new clusters do not need to have the same number of nodes.
- Old and new clusters do not need to have the same HA status.
- Old and new clusters do not need the same versions of add-ons except as noted above.
- Old and new clusters do not need to be on the same operating system.
- Old and new clusters do not need to use the same proxy settings. The proxy settings from the new cluster will be applied to KOTS when it is restored. Any application pods that use proxy template functions will need to be redeployed after restore.
- Use KOTS Snapshots to take a full snapshot on the old cluster with an external object store provider, such as S3.
- Install a new cluster with a new spec.
- On the new cluster, use the KOTS CLI to configure Velero to use the same snapshot destination as the old cluster.
- Wait until the
velero backup get command on the new cluster shows the backup taken on the old cluster.
kubectl kots restore --from-backup instance-<name> on the new cluster.
Example Old and New Specs
In the new spec, the Kubernetes version has been upgraded to 1.21, Longhorn has been replaced with OpenEBS, Weave has been replaced with Flannel, and docker has been replaced with containerd.