Uninstalling Karakuri¶
A clean removal. Helm deletes the workload and its cluster-scoped RBAC, but — by Kubernetes design — leaves PersistentVolumeClaims behind so you don't lose state by accident. Remove those explicitly if you want a full wipe.
Assumes the release name karakuri in namespace karakuri — adjust to yours.
1. Remove the Helm release¶
This deletes the Deployment, Service, ConfigMap, Secret, ServiceAccount, and the
cluster-scoped ClusterRole + ClusterRoleBinding (including the impersonate
grant if RBAC impersonation was enabled), plus the optional ServiceMonitor,
PrometheusRule, and NetworkPolicy.
2. Delete persisted state (optional, irreversible)¶
The SQLite data PVC is intentionally not removed by helm uninstall:
# inspect first
kubectl get pvc -n karakuri
# then delete the data volume (loses alert state, outcomes, learning history)
kubectl delete pvc karakuri-data -n karakuri
If you ran agent.backend: postgres, drop the Karakuri tables (or the database)
on your Postgres instead — there is no PVC in that mode.
3. Delete the namespace (optional)¶
Removes anything left in the namespace, including the data PVC from step 2.
4. Revoke external credentials¶
Karakuri's cluster footprint is gone, but the tokens it used are not — rotate or revoke them so they can't be reused:
- Slack app — uninstall the app from the workspace (Slack admin → Manage apps), or at least revoke the Bot + App-Level tokens in the app's settings.
- LLM provider key — delete/rotate the
OPENROUTER_API_KEY/OPENAI_API_KEY/ etc. you issued. (Ollama/local needs nothing.) BUTTON_SIGNING_SECRET— discard it; it only signed interactive payloads.- AWS / IRSA (Bedrock or EKS in-cluster auth) — remove the IAM role/policy and the ServiceAccount annotation if you created them solely for Karakuri.
5. Cluster-wide leftovers to double-check¶
If you installed via docker compose instead of Helm:
Reviewed: 2026-06-27.