Uninstall
Removing the Kubernetes Agent
Steps
-
Uninstall the Helm release:
helm uninstall opsworker-agent -n opsworker -
Remove the namespace:
kubectl delete namespace opsworker -
Remove the cluster from the portal:
- Go to the cluster's settings page
- Click Remove Cluster
- Confirm removal
What Happens
- The agent pod is terminated
- RBAC resources (ClusterRole, ClusterRoleBinding, ServiceAccount) are removed
- No new investigations will run for this cluster
- Historical investigations are preserved in the portal
Data Retention
After removing a cluster:
- Past investigations and their data remain accessible in the portal
- Alert history (signals) is retained
- Data is only fully removed if the organization is deleted
Reinstalling
To reconnect a cluster after removal:
- Add the cluster again in the portal (generates a new token)
- Install the agent with the new token
- Previous investigation history remains available
Removing the Helm Repository
If you no longer use OpsWorker:
helm repo remove opsworker
Next Steps
- Add/Remove Clusters — Re-add a cluster if needed