Uninstalling DevOps Automation from Kubernetes Service (K8S)

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

Before you begin

You must have completed the following tasks:
  • Installed Automation.

  • Closed Automation, any open web browsers, and all other applications that are enabled by Automation.

  • Optional: Backed up data from the previous version of Automation.

Procedure

  1. Switch to your K8S cluster by using the following command:
    kubectl config use-context <context-name>
  2. Run the following command to uninstall Automation:
    helm uninstall $HELM_NAME -n $NAMESPACE
    Where,
    NAMESPACE=devops-automation
    HELM_NAME=devops-automation

    The PersistentVolumeClaims and PersistentVolumes that were created during the installation are not deleted automatically. If you reinstall Automation, 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

Results

You have uninstalled Automation from the K8S cluster.