Difference between revisions of "Gcloud container clusters list"
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
* https://cloud.google.com/sdk/gcloud/reference/container/clusters/list | * 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 | [[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 | ||
Line 8: | Line 13: | ||
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_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 | 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 == | == Related == | ||
* <code>[[gcloud container clusters get-credentials]] your_cluster_1</code> | * <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= | + | [[ERROR:]] ([[gcloud.container.clusters.list]]) [[ResponseError: code=403]], message=Required "[[container.clusters.list]]" permission(s) for "projects/123456789". |
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]
gcloud container clusters get-credentials your_cluster_1
The required property [project] is not currently set
gcloud container clusters describe
ERROR: (gcloud.container.clusters.list) ResponseError: code=403, message=Required "container.clusters.list" permission(s) for "projects/123456789".
See also[edit]
gcloud container clusters [ create | get-credentials | list | describe ]
gcloud container [ clusters | images | get-server-config | subnets ]
- GKE, GKE Autopilot,
gcloud container, gke-gcloud-auth-plugin
, GKE release channels, GKE Ingress, GCP Node logs, GCP Node logs severity Error, GKE roles, Provide access to GKE cluster, Deploy GKE cluster using Terraform,cluster_autoscaling, addons_config, GKE Node Pool
, node auto-provisioning
Advertising: