Difference between revisions of "Gcloud container clusters list"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} == See also == * {{gcloud container clusters}} * {{gcloud container}} Category:GCP")
 
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
* https://cloud.google.com/sdk/gcloud/reference/container/clusters/list
 +
[[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
 +
 +
[[gcloud container clusters]] list
 +
NAME                      LOCATION    MASTER_VERSION  MASTER_IP      MACHINE_TYPE  NODE_VERSION  NUM_NODES  STATUS
 +
mytestproject04122023-gke  us-central1  1.27.3-gke.100  34.121.138.208                              1          RUNNING
 +
 +
== Related ==
 +
* <code>[[gcloud container clusters get-credentials]] your_cluster_1</code>
 +
* <code>[[The required property]] [project] [[is not currently set]]</code>
 +
* <code>[[gcloud container clusters describe]]</code>
 +
 +
[[ERROR:]] ([[gcloud.container.clusters.list]]) [[ResponseError: code=403]], message=Required "[[container.clusters.list]]" permission(s) for "projects/123456789".
 +
 +
 +
* <code>[[aws eks list-clusters]]</code>
  
 
== See also ==
 
== See also ==
 
* {{gcloud container clusters}}
 
* {{gcloud container clusters}}
 
* {{gcloud container}}
 
* {{gcloud container}}
 +
* {{GKE}}
  
 
[[Category:GCP]]
 
[[Category:GCP]]
 +
[[Category:GKE]]

Latest revision as of 16:56, 7 December 2023

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

Examples[edit]

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
gcloud container clusters list
NAME                       LOCATION     MASTER_VERSION  MASTER_IP       MACHINE_TYPE  NODE_VERSION  NUM_NODES  STATUS
mytestproject04122023-gke  us-central1  1.27.3-gke.100  34.121.138.208                              1          RUNNING

Related[edit]

ERROR: (gcloud.container.clusters.list) ResponseError: code=403, message=Required "container.clusters.list" permission(s) for "projects/123456789".


See also[edit]

Advertising: