This is an alpha feature and only available in the preview
v0.6.0 versions of vcluster
Pausing a vcluster means to temporarily scale down the vcluster and delete all its created workloads on the host cluster. This can be useful to save computing resources used by vcluster workloads in the host cluster.
In order to pause a vcluster, make sure you have the CLI installed and run the following command:
This command will do the following things:
- Scale down the vcluster statefulset or deployment depending on which vcluster distro was used
- Delete all the workloads created by vcluster
The command leaves the objects within the vcluster untouched, which means that even single pods that were deployed within the vcluster without a controlling replica set or statefulset will be restarted.
Temporary Filesystem of Pods erased
Since all the pods will be restarted, this also means that their temporary filesystem is erased as well as pod ip is changed.
To resume a vcluster, make sure you have the CLI installed and run the following command:
As soon as the vcluster is resumed, vcluster will scale up the paused statefulset or deployment and the vcluster syncer will recreate the vcluster pods.