Based on the way how CAST was used on a cluster there are two options to remove CAST resources.
In order to disconnect your cluster from CAST AI click Disconnect cluster button in Clusters list and follow the guidance. Alternatively run following command from your terminal used to access the cluster:
kubectl delete namespace castai-agent
On top of that, also delete following kubernetes objects related to
- serviceaccount and secret
- clusterrole and clusterrolebinding
- role and rolebinding
Once cluster is disconnected its
Status will change to
Disconnected and you can choose to remove it from console by pressing Delete cluster button.
Cluster will continue to run as normal, since Delete cluster action only removes it from CAST AI console.
In order to remove CAST AI follow these steps:
- Go to CAST AI console → Autoscaler page → Disable all policies
- Disconnect the cluster by clicking Disconnect cluster button and following the guidance
With above mentioned pre-requisites completed, go to the cloud provider's console and remove CAST AI resources (e.g. AWS Security group, GKE Service account or AKS application).
Updated 18 days ago