Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Check google anthos version

mary25
New Member

Hello, 

sorry, I'm really a beginner. Please say me the commands that can be used for checking the Google Anthos version installed. Thank you

0 2 126
2 REPLIES 2

Hi @mary25,

For admin cluster:  

 

gkectl list admin --kubeconfig ADMIN_CLUSTER_KUBECONFIG

 


For user cluster:

 

gkectl list clusters --kubeconfig ADMIN_CLUSTER_KUBECONFIG

 

These commands are for Anthos(GDC) VmWare.

 

For baremetal:

1: 

kubectl get RESOURCE --kubeconfig ADMIN_KUBECONFIG --all_namespaces

Replace the following:

RESOURCE: the name of the resource that you want to get. Cluster, NodePool, and BareMetalMachine resources all contain anthosBareMetalVersion status information.

ADMIN_KUBECONFIG: the path of the admin cluster kubeconfig file.

2: 

To check the status.anthosBareMetalVersion (current version of the resource), retrieve details for individual resources:

kubectl describe RESOURCE RESOURCE_NAME \
    --kubeconfig ADMIN_KUBECONFIG \
    --namespace CLUSTER_NAMESPACE
Top Labels in this Space