Skip to content

Instantly share code, notes, and snippets.

View liptanbiswas's full-sized avatar
💻

Liptan Biswas liptanbiswas

💻
View GitHub Profile
@jeffjohnson9046
jeffjohnson9046 / kops-export-config.sh
Last active May 8, 2021 22:36
How to update kubectl to see a new Kubernetes cluster
# This is something that I always forget and had a surprisingly hard time finding (or better yet, understanding). Here's the
# scenario: a colleague creates a new kubernetes cluster, named" cluster-foo.example.com". You want to look at it (for
# troubleshooting, updating the deployment, whatever). To get your kubectl installation to "see" the new cluster, take the
# following steps:
# ASSUMPTION: You have pointed kops to some location where the cluster configurations are stored
# (I have this in my ~/.bash_profile):
export KOPS_STATE_STORE=s3://example-state-store
# Use kops to get the list of clusters