Google Cloud CLI: Difference between revisions
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
==Kontena Lens== | ==Kontena Lens== | ||
gcloud init | gcloud init | ||
gcloud container clusters get-credentials '''<cluster-name>''' -- | gcloud container clusters get-credentials '''<cluster-name>''' --zone asia-southeast1 --project '''<project-name>''' | ||
gcloud container clusters describe '''<cluster-name>''' | gcloud container clusters describe '''<cluster-name>''' --zone asia-southeast1 --format='value(endpoint)' | ||
Lens » Catalog | Lens » Catalog | ||
Revision as of 02:19, 14 May 2024
sudo apt update
sudo apt install apt-transport-https ca-certificates gnupg curl
# register apt-get repository
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg \
| sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
cat << EOF | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list >/dev/null
deb [arch=$(dpkg --print-architecture) \
signed-by=/usr/share/keyrings/cloud.google.gpg] \
https://packages.cloud.google.com/apt cloud-sdk main
EOF
sudo apt update
sudo apt install google-cloud-cli
sudo apt install google-cloud-cli-gke-gcloud-auth-plugin
Kontena Lens
gcloud init gcloud container clusters get-credentials <cluster-name> --zone asia-southeast1 --project <project-name> gcloud container clusters describe <cluster-name> --zone asia-southeast1 --format='value(endpoint)' Lens » Catalog
Playground
gcloud cheat-sheet
gcloud --help
|
gcloud init --console-only
gcloud init
|
gcloud auth login --no-browser
gcloud auth login
|
| ||
gcloud container clusters get-credentials <cluster-name> --region asia-southeast1 --project <project-name> gcloud container clusters describe <cluster-name> --zone asia-southeast1 --format='value(endpoint)' | ||
| ||
gcloud auth login --no-launch-browser
ls -lah ~/.config/gcloud/
gcloud config list
gcloud config -h
gcloud auth list
gcloud auth -h
|
gcloud auth login -h
gcloud init -h
gcloud info
gcloud -h
|
References
| ||