Prerequisites
Install Metrics Server before connecting — it is required for pod and node resource metrics:Supported platforms
Setup
- Via Cloud Provider (Recommended)
- Direct Kubeconfig
Auto-discovery from cloud connections
If you’ve already connected AWS, GCP, or Azure, your managed Kubernetes clusters are automatically discovered.Connection details
The kubeconfig format CloudThinker uses for direct connections:Required permissions
Minimum (read-only)
Recommended (full analysis)
Agent capabilities
Once connected, Kai can inspect and optimize your cluster.Verify the connection
Example prompts
Troubleshooting
Cannot connect to cluster
Cannot connect to cluster
Verify the API server endpoint is accessible from the internet. Check that firewall rules and security groups allow CloudThinker’s IPs. For private clusters, set up VPN or bastion access and confirm the API server certificate is valid.
No metrics data
No metrics data
Verify Metrics Server is installed by running
kubectl top nodes. Check that Metrics Server pods are running and that the metrics.k8s.io API is available.Missing namespaces
Missing namespaces
Verify the ClusterRole includes namespace list permission. Check if RBAC restricts access to certain namespaces and confirm the service account binding is cluster-wide.
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Read-only access — never grant write verbs to the CloudThinker service account; get, list, and watch are sufficient for all agent capabilities.
- Namespace isolation — keep the service account in a dedicated namespace (e.g.,
cloudthinker) to simplify auditing and revocation.
Related
Kai Agent
Kubernetes-focused optimization agent
AWS Connection
Connect AWS for EKS auto-discovery