Check google anthos version

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

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

Hi @mary25 !

What @shayan posted looks like a solid solution. If it solves your problem, please don’t forget to mark it as the solution so others can benefit too.

Let us know if you have any follow-up questions!