Uninstalling the web terminal¶
Uninstalling the Web Terminal Operator does not remove any of the custom resource definitions (CRDs) or managed resources that are created when the Operator is installed. For security purposes, you must manually uninstall these components. By removing these components, you save cluster resources because terminals do not idle when the Operator is uninstalled.
Uninstalling the web terminal is a two-step process:
- Uninstall the Web Terminal Operator and related custom resources (CRs) that were added when you installed the Operator.
- Uninstall the DevWorkspace Operator and its related custom resources that were added as a dependency of the Web Terminal Operator.
Removing the Web Terminal Operator¶
You can uninstall the web terminal by removing the Web Terminal Operator and custom resources used by the Operator.
Prerequisites
- You have access to the OpenShift Container Platform web console as a user with the
cluster-adminrole. - You have installed the
ocCLI.
Procedure
- In the web console, navigate to Ecosystem → Installed Operators.
- Scroll the filter list or type a keyword into the Filter by name box to find the Web Terminal Operator.
- Click the Options menu
for the Web Terminal Operator, and then select Uninstall Operator. - In the Uninstall Operator confirmation dialog box, click Uninstall to remove the Operator, Operator deployments, and pods from the cluster. The Operator stops running and no longer receives updates.
Removing the DevWorkspace Operator¶
To completely uninstall the web terminal, you must also remove the DevWorkspace Operator and custom resources used by the Operator.
Warning
The DevWorkspace Operator is a standalone Operator and might be required as a dependency for other Operators installed in the cluster. Follow the steps below only if you are sure that the DevWorkspace Operator is no longer needed.
Prerequisites
- You have access to an OpenShift Container Platform cluster with cluster administrator permissions.
- You have installed the
ocCLI.
Procedure
-
Remove the
DevWorkspacecustom resources used by the Operator, along with any related Kubernetes objects:Warning
If this step is not complete, finalizers make it difficult to fully uninstall the Operator.
-
Remove the CRDs used by the Operator:
Warning
The DevWorkspace Operator provides custom resource definitions (CRDs) that use conversion webhooks. Failing to remove these CRDs can cause issues in the cluster.
$ oc delete customresourcedefinitions.apiextensions.k8s.io devworkspaceroutings.controller.devfile.io -
Verify that all involved custom resource definitions are removed. The following command should not display any output:
-
Remove the
devworkspace-webhook-serverdeployment, mutating, and validating webhooks:Note
If you remove the
devworkspace-webhook-serverdeployment without removing the mutating and validating webhooks, you cannot useoc execcommands to run commands in a container in the cluster. After you remove the webhooks you can use theoc execcommands again. -
Remove any remaining services, secrets, and config maps. Depending on the installation, some resources included in the following commands might not exist in the cluster.
-
Uninstall the DevWorkspace Operator:
- In the Administrator perspective of the web console, navigate to Ecosystem → Installed Operators.
- Scroll the filter list or type a keyword into the Filter by name box to find the DevWorkspace Operator.
- Click the Options menu
for the Operator, and then select Uninstall Operator. - In the Uninstall Operator confirmation dialog box, click Uninstall to remove the Operator, Operator deployments, and pods from the cluster. The Operator stops running and no longer receives updates.