Prevent Deletion
Accidental deletion of tenant clusters is something that can not be reverted. In order to prevent deletion of tenant clusters, a setting can be enabled on the tenant cluster instance.
If you want to delete this tenant cluster in the future, you need to remove the label either in the YAML manifest or through the toggle in the UI. Once you have done this, you can delete the tenant cluster as usual.
- Within the UI
- Within the YAML manifest
You can prevent tenant cluster deletion, by setting the annotation loft.sh/non-deletable: "true" in the YAML manifest of the tenant cluster instance.
apiVersion: management.loft.sh/v1
kind: VirtualClusterInstance
metadata:
name: my-vcluster
annotations:
loft.sh/non-deletable: "true"
spec:
templateRef:
name: isolated-vcluster
clusterRef:
cluster: loft-cluster
From the project drop-down menu (top left corner), select the project you'd like to create the tenant cluster in.
Click Tenant Clusters.
Click the option for the tenant cluster you want to modify.
Navigate to Advanced section on the left.
Select the expander and enable Enabled.
Click the button to save the changes.