A TUI for selecting and connecting to GKE clusters across all your GCP projects, with shell prompt integration so you always know which cluster you're on.
| Tool | Install |
|---|---|
gcloud CLI |
brew install --cask google-cloud-sdk |
kubectl |
brew install kubectl |
gke-gcloud-auth-plugin |
gcloud components install gke-gcloud-auth-plugin |
fzf (optional, recommended) |
brew install fzf |
Make sure you're authenticated:
gcloud auth login# Make the script executable
chmod +x kube-select
# Symlink into your PATH (optional)
ln -s "$(pwd)/kube-select" /usr/local/bin/kube-selectkube-select
Walks you through:
- Pick a GCP project from all projects you have access to
- Pick a GKE cluster within that project (shows location, status, node count)
- Connects — configures
kubectlcredentials automatically
kube-select switch
Lists all contexts already in your ~/.kube/config and lets you switch instantly.
kube-select current
Add to your ~/.zshrc (or ~/.bashrc):
source "/path/to/kube-prompt.sh"Your prompt will show the active cluster, project, region, and namespace:
☸ my-cluster (my-project/europe-west2)/default ~/code $
The prompt updates automatically whenever you switch contexts.
- Uses
gcloud projects listto enumerate all projects your account can access - Uses
gcloud container clusters listto find GKE clusters in a project - Uses
gcloud container clusters get-credentialsto configurekubectl - If
fzfis installed, provides a fuzzy-search TUI; otherwise falls back to a numbered menu