Uninstalling DevOps Loop from Kubernetes Service (K8S)
To reinstall HCL DevOps Loop when an ongoing installation fails, you can uninstall DevOps Loop and its components from the Kubernetes Service (K8S) cluster.
Before you begin
-
Installed DevOps Loop.
-
Closed DevOps Loop, any open web browsers, and all other applications that are enabled by DevOps Loop.
- Ensured that, if applicable, existing namespaces used by Code dev containers running in user namespaces are deleted before starting the uninstall.
Procedure
-
Switch to your K8S cluster by using the following command:
kubectl config use-context <context-name> -
Run the following command to uninstall DevOps Loop:
Where,helm uninstall $HELM_NAME -n $NAMESPACENAMESPACE=devops-loop HELM_NAME=devops-loopNote:User-specific DevContainer namespaces are not removed automatically when DevOps Loop is uninstalled. These namespaces are created outside of the DevOps Loop Helm release and therefore are not deleted when the Helm release is removed.After uninstalling DevOps Loop, review the cluster for any DevContainer namespaces that are no longer required and delete them manually:kubectl delete namespace <devcontainerNamespace>DevContainer namespace names are derived from the user's email address, with special characters converted to Kubernetes-compatible character sequences. For example, the email address
xyz@example.comis converted to the namespacexyz-40-example-2e-com.The PersistentVolumeClaims and PersistentVolumes that were created during the installation are not deleted automatically. If you reinstall DevOps Loop, the user data is reused unless you specifically delete those volumes.
-
Run the following command to delete everything, including the user data
contained in claims and persistent volumes:
kubectl delete namespace $NAMESPACE