Difference between revisions of "Gcloud container clusters list"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
  [[gcloud container clusters list --help]]
 
  [[gcloud container clusters list --help]]
  
 +
[[gcloud container clusters list]] [[2>/dev/null]]  | [[tail -n +2]] | awk '{print $1}'
  
 +
== Examples ==
 
  [[gcloud container clusters]] list
 
  [[gcloud container clusters]] list
 
  NAME                        LOCATION        MASTER_VERSION    MASTER_IP      [[MACHINE_TYPE]]  NODE_VERSION      NUM_NODES  STATUS
 
  NAME                        LOCATION        MASTER_VERSION    MASTER_IP      [[MACHINE_TYPE]]  NODE_VERSION      NUM_NODES  STATUS

Revision as of 15:37, 6 November 2022

gcloud container clusters list
gcloud container clusters list --help
gcloud container clusters list [[2>/dev/null]]  | tail -n +2 | awk '{print $1}'

Examples

gcloud container clusters list
NAME                        LOCATION        MASTER_VERSION    MASTER_IP       MACHINE_TYPE   NODE_VERSION      NUM_NODES  STATUS
your_cluster_1           europe-west3-a  1.21.12-gke.1500  31.246.129.x  e2-medium      1.21.12-gke.1500  2          RUNNING
your_cluster_2           europe-west3-b  1.21.11-gke.1900  31.242.192.x      n1-standard-4  1.21.11-gke.1900  6          RUNNING
your_cluster_3           europe-west3-b  1.21.11-gke.1900  31.242.239.x    e2-standard-4  1.21.11-gke.1900  1          RUNNING
your_cluster_4           europe-west3-c  1.22.8-gke.202    36.107.72.x       e2-medium      1.22.8-gke.202    2          RUNNING

Related

The required property [project] is not currently set
ERROR: (gcloud.container.clusters.list) ResponseError: code=403, message=Required "container.clusters.list" permission(s) for "projects/123456789".


See also

Advertising: