Uninstalling DevOps Loop from Kubernetes Service (K8S)

To reinstall IBM® DevOps Loop when an ongoing installation fails, you can uninstall DevOps Loop and its components from the Kubernetes Service (K8S) cluster.

You must have completed the following tasks:
  • 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.
  1. Switch to your K8S cluster by using the following command:
    kubectl config use-context <context-name>
  2. Run the following command to uninstall DevOps Loop:
    helm uninstall $HELM_NAME -n $NAMESPACE
    Where,
    NAMESPACE=devops-loop
    HELM_NAME=devops-loop
    Note: 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.com is converted to the namespace xyz-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.

  3. Run the following command to delete everything, including the user data contained in claims and persistent volumes:
    kubectl delete namespace $NAMESPACE
You have uninstalled DevOps Loop from the K8S cluster.