<p>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.</p>

<p>I endup doing little different way. I used <a href="https://book.kubebuilder.io/cronjob-tutorial/gvks.html" rel="nofollow noreferrer">GVK API</a> to query using custom object API. I listed all the namespaces using corev1api and then did
<code>list_namespaced_custom_object(group=&quot;autoscaling.k8s.io&quot;, version=&quot;v1&quot;, namespace=&lt;namespace-name&gt;, plural=&quot;verticalpodautoscalers&quot;)</code>
Python library example is <a href="https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/CustomObjectsApi.md#list_namespaced_custom_object" rel="nofollow noreferrer">here</a></p>
