1. CloudShell gcloud commands

gcloud beta interactive

Check what project in use

gcloud config get-value project

List all projects

gcloud projects list

Switch to another project

gcloud config set project altenar-s001

Check what services are using in project

gcloud services list

Check compute instances in project

gcloud compute instances list

Show running-config

gcloud config list

Using FILTER

gcloud compute machine-types list --filter="NAME:f1-micro AND ZONE~us-west"

Connect to GKE cluster

gcloud container clusters get-credentials x001-sup-k8s-euwe1 --region europe-west1 --project altenar-ps01

Last updated

Was this helpful?