autoscaler
autoscaler copied to clipboard
Cluster Autoscaler Status in YAML
Which component are you using?:
cluster-autoscaler
Is your feature request designed to solve a problem? If so describe the problem this feature should solve.:
Some tools may work in conjunction with cluster autoscaler to extend features. Currently they are for the most part working in the blind. Allowing applications to read the cluster auto scaler status would allow for these applications extend with smarter logic.
Describe the solution you'd like.:
Currently cluster autoscaler outputs its status to config map called cluster-autoscaler-status
. The issue is that the status is written in a human readable format, making it difficult for other applications to parse. A good option would be to write the same data to the same config map but in yaml instead. This would allow for applications to parse the status a lot easier.
Describe any alternative solutions you've considered.:
N/A
Additional context.:
Current code which implements the main parts of the status writing. https://github.com/kubernetes/autoscaler/blob/7eec219a6efb5c4e68ffca4367ddb45b8b6fe180/cluster-autoscaler/clusterstate/utils/status.go#L85-L131
I have no issue implementing this but would like some feedback in the structs used to expose the data so that other applications easily can import them.