Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check Kubernetes Cluster Autoscaler version?

Kubernetes Cluster Autoscaler versions are tightly coupled to Kubernetes versions. How can I check what version of Cluster Autoscaler is deployed currently in my Kubernetes cluster?

Running gcloud container clusters describe my-kube-cluster does not return the Cluster Autoscaler version:

nodePools:
- autoscaling:
    enabled: true
    maxNodeCount: 12
    minNodeCount: 3
like image 770
sabrehagen Avatar asked Dec 03 '25 20:12

sabrehagen


1 Answers

There's no endpoint in the cluster autoscaler that prints it's version, including /health-check and /metrics. The only place I could find that referenced a version number was this line in the initialisation code, which you might find in the cluster autoscaler logs. Other than that I guess you could use the kubernetes API to query the cluster autoscaler Deployment resource image tag:

kubectl get pods --all-namespaces -o=jsonpath="{..image}" -l app=cluster-autoscaler
like image 94
vascop Avatar answered Dec 05 '25 13:12

vascop



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!