Disabling YTsaurus
To disable the YTsaurus component, switch the YTsaurusConfig resource to spec.enabled: false.
Alert
When you disable the component, the controller deletes Helm releases and the stackland-ytsaurus namespace. All YTsaurus cluster resources, including PVCs and data stored in them, will be deleted together with the namespace. Once the component is disabled, you cannot recover this data.
Before disabling this component, make sure you no longer need the YTsaurus cluster data or save it to an external storage.
Using the CLI
-
Open the
YTsaurusConfig mainresource to edit it:kubectl edit ytsaurusconfig main. Installspec.enabled: false. You can leave thespec.clusterfields unchanged.Alternatively, apply a ready-to-use manifest:
apiVersion: stackland.yandex.cloud/v1alpha1 kind: YTsaurusConfig metadata: name: main spec: enabled: falsekubectl apply -f ytsaurusconfig-disable.yaml -
Wait for the deletion to complete. You can check the current removal status in the
ComponentInstallation ytsaurus-mainresource:kubectl get componentinstallation ytsaurus-main -o jsonpath='{.status.phase}'During the deletion, the status remains
Uninstalling. Once the deletion succeeds, theComponentInstallation ytsaurus-mainresource will be removed from the cluster. -
Make sure the
stackland-ytsaurusnamespace has been deleted:kubectl get namespace stackland-ytsaurusThe command should return the
NotFounderror.
Re-enabling the component
To redeploy your YTsaurus cluster, set spec.enabled back to true. Re-enabling the component provisions a new YTsaurus cluster with empty storage. No data from the previous cluster is restored. For more information, see Enabling YTsaurus.