Skip to main content
CloudThinker reads your Kubernetes cluster through a read-only service account and answers in chat, so you stop running 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 cloudthinker-reader.yaml and apply it:
It creates the 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:
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.
2

Build a kubeconfig for that account

Run this from a shell whose current 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:
On older macOS releases, replace base64 --decode with base64 -D. Then test the file:
If it lists your nodes with a 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.
Don’t upload your everyday kubeconfig. Files that point to local paths or sign in through an exec plugin (such as a cloud CLI) depend on tools on your machine and fail in CloudThinker. The token-based file you built in Build a kubeconfig for that account avoids both.

Step 2: Check cluster health

Start with a quick check that the connection sees what you expect:
You get the namespace list, the node count, and each node’s status. If usage numbers are missing, the answer tells you Metrics Server is not installed. Then ask for the wider picture. These prompts each cover one layer of the cluster: 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:
CloudThinker finds the crash-looping, pending, or restarting pods, reads their logs and warning events, and explains the likely cause in one answer. Follow up in the same conversation to narrow it down:
For scheduling problems, the answer compares pod requests with what each node can still allocate. For restarts, it ties the restarts to the logs, events, and resource limits.

Applying a fix

With the read-only role, change commands such as scale, 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:
Cordon and drain act on nodes, so they need a ClusterRole. See Write access and Approvals.

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:
Each run gets its own conversation under Runs. To get results or failures in Slack, Teams, Google Chat, or email, set up notifications. See Automations.

Troubleshooting

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.
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.
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).
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.
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