Deleting a Cluster

If a Local Edition cluster, or Kubernetes cluster, is no longer needed, it can be deleted.

Deleting a Local Edition Cluster

  1. Navigate to the appropriate folder, depending on whether you had deployed to a single Azure region or single Azure VM:
    • Single Azure region - /var/jenkins_home/docker-deploy/azure/k8s/manifest-single-region
    • Single Azure VM - /var/jenkins_home/docker-deploy/azure/k8s/manifest-single-host
  2. Run the following command:
    ./delete-tml-cluster.sh

    Example output:

    deployment "cm-deploy-0" deleted
    configmap "tm-property-map" deleted
    deployment "tm-deploy-0" deleted
    configmap "cache-property-map" deleted
    statefulset "cache-set-0" deleted
    configmap "sql-property-map" deleted
    statefulset "mysql-set-0" deleted
    configmap "log-property-map" deleted
    statefulset "log-set-0" deleted
    configmap "nosql-property-map" deleted
    statefulset "cass-set-0" deleted
    service "cm-svc-0" deleted
    service "tm-svc" deleted
    service "cache-svc-0" deleted
    service "mysql-svc-0" deleted
    service "log-svc-0" deleted
    service "cass-svc-0" deleted
    persistentvolumeclaim "cachevol-cache-set-0-0" deleted
    persistentvolumeclaim "cachevol-cache-set-0-1" deleted
    persistentvolumeclaim "cachevol-cache-set-0-2" deleted
    persistentvolumeclaim "sqlvol-mysql-set-0-0" deleted
    persistentvolumeclaim "logvol-log-set-0-0" deleted
    persistentvolumeclaim "logvol-log-set-0-1" deleted
    persistentvolumeclaim "nosqlvol-cass-set-0-0" deleted
    persistentvolumeclaim "nosqlvol-cass-set-0-1" deleted
    persistentvolumeclaim "nosqlvol-cass-set-0-2" deleted
    storageclass "sql-storage-0" deleted
    storageclass "log-storage-0" deleted
    storageclass "nosql-storage-0" deleted
    storageclass "cache-storage-0" deleted

Deleting a Kubernetes Cluster

  1. Navigate to the appropriate folder, depending on whether you had deployed to a single Azure region or single Azure VM:
    • Single Azure region - /var/jenkins_home/docker-deploy/azure/k8s/manifest-single-region
    • Single Azure VM - /var/jenkins_home/docker-deploy/azure/k8s/manifest-single-host
  2. Run the following command:
    ./delete-k8s-cluster.sh