Deleting a Cluster

If a TIBCO Cloud™ API Management - Local Edition cluster, Kubernetes cluster, or static IPs are no longer needed, they can be deleted.

Deleting a API Management - Local Edition Cluster

To delete the Local Edition cluster:

  1. Navigate to the appropriate folder, depending on whether you are using a single zone or multiple zones.
    • Single zone -/var/jenkins_home/docker-deploy/gcp/k8s/manifest-single-zone
    • Multiple zones - /var/jenkins_home/docker-deploy/gcp/k8s/manifest-multiple-zones
  2. Run the following command:
    ./delete-tml-cluster.sh
Sample output:
deployment.apps "cm-deploy-0" deleted
configmap "tm-property-map" deleted
deployment.apps "tm-deploy-0" deleted
configmap "cache-property-map" deleted
statefulset.apps "cache-set-0" deleted
configmap "sql-property-map" deleted
statefulset.apps "mysql-set-0" deleted
configmap "log-property-map" deleted
statefulset.apps "log-set-0" deleted
configmap "nosql-property-map" deleted
statefulset.apps "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.storage.k8s.io "sql-storage-0" deleted
storageclass.storage.k8s.io "log-storage-0" deleted
storageclass.storage.k8s.io "nosql-storage-0" deleted
storageclass.storage.k8s.io "cache-storage-0" deleted

Deleting a Kubernetes Cluster

To delete the Kubernetes cluster:

  1. Navigate to the appropriate folder, depending on whether you are using a single zone or multiple zones.
    • Single zone -/var/jenkins_home/docker-deploy/gcp/k8s/manifest-single-zone
    • Multiple zones - /var/jenkins_home/docker-deploy/gcp/k8s/manifest-multiple-zones
  2. Run the following command:
    ./delete-k8s-cluster.sh

Example output:

Deleting cluster tml-reference-cluster-single-zone...done.
Deleted [https://container.googleapis.com/v1/projects/mashery-cloud-operations/zones/us-central1-a/clusters/tml-reference-cluster-single-zone].

Deleting Static IPs

If static IPs were created, and they are no longer needed, they can be deleted as follows:

  1. Navigate to the appropriate folder, depending on whether you are using a single zone or multiple zones.
    • Single zone -/var/jenkins_home/docker-deploy/gcp/k8s/manifest-single-zone
    • Multiple zones - /var/jenkins_home/docker-deploy/gcp/k8s/manifest-multiple-zones
  2. Run the following command:
    ./delete-static-ips.sh