← worklog

2026-06-01

A one-command CLI to kill Kubernetes onboarding friction

GoAWSGCPKubernetesDeveloper Tooling

The problem

Getting local Kubernetes access to our shared clusters meant installing the right CLI tools per OS, hand-editing an SSO profile, hunting for a cluster ARN in the console, and running the kubeconfig-generation command with exactly the right flags — one typo anywhere and it fails silently. It was a recurring 30-90 minute rite of passage generating a steady stream of support requests, and nobody had assigned fixing it — I just built it.

What I built

A Go CLI, cross-platform (macOS/Linux/Windows), structured around the actual failure points:

  • Setup command — checks for required tools and installs anything missing, logs into SSO, generates a correct kubeconfig entry, sets the default namespace
  • Context switcher — clusters have multiple namespaces and IAM roles; this lets you save a cluster/role/namespace combination under a name and switch to it instantly afterward, including via shell aliases
  • Bastion port-forwarding — finds the running bastion host from AWS profiles, resolves the cluster's API endpoint, and opens an SSM port-forward session automatically, replacing a multi-step manual bastion hop
  • Cross-cloud tunnel — the equivalent for clusters on GCP: resolves the private control-plane IP and opens an IAP tunnel

Result

Onboarding dropped from 30-90 minutes of documentation-reading and support messages to about three minutes running a single command, with no prior Kubernetes or cloud knowledge required. It's since been extended by other engineers adding their own commands into the same tool rather than writing separate scripts — the strongest signal that it actually solved the problem rather than just being one more script nobody trusted.