kubectl get, describe, and logs across dozens of pods to line up events, restarts, and usage. This walkthrough takes you from an empty workspace to a cluster health check and a failing-pod investigation in about 15 minutes.
What you need
A workspace holds one Kubernetes connection, and CloudThinker works in the kubeconfig’s current context. Pick the one cluster you want inspected. For several clusters, use one workspace per cluster, or add a Rancher connection for inventory and health across the clusters Rancher manages.
Step 1: Connect the cluster
1
Create a read-only service account
Save the manifest below as It creates the
The token Secret never expires on its own. To rotate it, delete the Secret, apply the manifest again, rebuild the kubeconfig, and replace it in CloudThinker. See Security for the commands and how to revoke access.
cloudthinker-reader.yaml and apply it:cloudthinker namespace, a cloudthinker-reader service account, a ClusterRole bound to it, and a long-lived token Secret. The role grants get, list, and watch only, and never on Secrets:cloudthinker-reader.yaml
cloudthinker-reader.yaml
2
Build a kubeconfig for that account
Run this from a shell whose current On older macOS releases, replace If it lists your nodes with a
kubectl context is the target cluster. It reads the server URL from that context and the token and CA certificate from the Secret, so there’s nothing to fill in. It writes cloudthinker-kubeconfig.yaml:base64 --decode with base64 -D. Then test the file:STATUS of Ready, CloudThinker’s connection test will pass too. It runs the same command.3
Upload it in CloudThinker
In the sidebar, click More → Workspace settings → Connections, select Kubernetes, upload the file in the KUBECONFIG field, and click Connect.The status moves through Connecting and Verifying to Connected. If the test fails, the dialog shows Failed or Timed out with the error from the cluster. See Troubleshooting.
Step 2: Check cluster health
Start with a quick check that the connection sees what you expect:
Name the namespace, or a label such as
app.kubernetes.io/part-of=web, in each prompt. A loose phrase like “the web deployments” leaves CloudThinker to guess what you mean.
In one team’s payments namespace, the sizing prompt flagged two services running at about 20% CPU (over-provisioned) and one, payment-processor, running above 80% CPU and close to its memory limit. That pod was at risk of OOM (out-of-memory) kills. The autoscaling prompt then showed it had only 2 replicas and no Horizontal Pod Autoscaler (HPA).
Step 3: Investigate a failing pod
When something is already broken, name the namespace and describe the symptom:Applying a fix
With the read-only role, change commands such asscale, rollout restart, cordon, drain, or apply fail with 403, even after you approve them. To allow a change, first bind a Role with only the verbs it needs, then approve the command when CloudThinker asks. This Role lets CloudThinker scale and restart deployments in payments only:
Run it on a schedule
Once a prompt gives you a useful answer, rerun it on a schedule so the health check lands before anyone is paged. Open Automations in the sidebar, select New automation, and pick Create with chat (or type/create-automation in a chat). Then describe the job, for example:
Troubleshooting
The connection test can't reach the cluster
The connection test can't reach the cluster
The API server address in the kubeconfig isn’t reachable from the internet. Check that it isn’t VPN-only. If you use an allowlist (EKS public access CIDRs, GKE authorized networks, AKS authorized IP ranges), add CloudThinker’s egress IPs to it. Ask your CloudThinker contact for the current list.
Answers have no CPU or memory numbers
Answers have no CPU or memory numbers
Metrics Server isn’t installed or isn’t ready. Run
kubectl top nodes to check. Pod status, events, and node conditions still work without it.An answer mentions a 403 on some resource
An answer mentions a 403 on some resource
The ClusterRole doesn’t cover that resource. The error names it, so add it to the role (or leave it out on purpose, as with Secrets).
Answers are about the wrong cluster
Answers are about the wrong cluster
CloudThinker uses the kubeconfig’s current context. Rebuild the file from the cluster you want. Then open Kubernetes in Connections, click the pencil icon on the connection’s row, click Replace… in Edit Instance, upload the new file, and click Save and test.
The test fails with an exec plugin or file not found error
The test fails with an exec plugin or file not found error
You uploaded a kubeconfig that signs in through a local command (such as
aws, gcloud, or kubelogin) or points to a local file. Build the token-based kubeconfig in Step 1 and upload that instead. The default kubeconfigs from aws eks update-kubeconfig and gcloud container clusters get-credentials both use an exec plugin, so don’t upload them.Next steps
Kubernetes connection
Full setup, the permission manifest, and how to revoke access
Approvals
How your Approval mode decides a change like scale or restart