Skip to content

Instantly share code, notes, and snippets.

@mahigupta
Created August 9, 2019 20:53
Show Gist options
  • Save mahigupta/fe9e15ba450308a79949e9ab3e2dbc46 to your computer and use it in GitHub Desktop.
Save mahigupta/fe9e15ba450308a79949e9ab3e2dbc46 to your computer and use it in GitHub Desktop.
Gcloud basic commands

Gcloud commands

gcloud auth application-default login
gcloud init

gcloud auth application-default print-access-token

multiple config in cloud

gcloud config configurations list
gcloud config configurations create personal-config
gcloud init
 gcloud config configurations list
gcloud config configurations activate default/personal-config

switch kubectl context
===================
kubectl config get-contexts

kubectl config use-context <name>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment