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
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