y2501
y2501

Reputation: 73

Is there any python API to collect kubernetes VPA data

I have enabled the VPA on cluster as read only mode and tried to collect the VPA recommendation data. But I could not find a good documentation or any API details specific to the Vertical Pod Autoscaling. I have found it for the Horizontal Pod Autoscaler but not for the VPA.

Upvotes: 5

Views: 563

Answers (2)

y2501
y2501

Reputation: 73

I endup doing little different way. I used GVK API to query using custom object API. I listed all the namespaces using corev1api and then did list_namespaced_custom_object(group="autoscaling.k8s.io", version="v1", namespace=<namespace-name>, plural="verticalpodautoscalers") Python library example is here

Upvotes: 1

Jakub
Jakub

Reputation: 8830

As I mentioned in comments

From what I see in the python client library, there is neither documentation or API created for Vertical Pod Autoscaler at this moment.

There is only documentation and API created for Horizontal Pod Autoscaler. Which may be found here.

Upvotes: 1

Related Questions