<p>I don't find autoscaling/v2beta2 or beta1 when I run the command $kubectl api-versions. But I need it for memory autoscaling. What to do ?</p>
<p>To enable autoscaling/v2beta2</p>

Santosh Reddy
<p>Most likely you're using latest Minikube with Kubernetes 1.26 where <code>autoscaling/v2beta2</code> API is no longer served:</p>
<blockquote>
<p>The autoscaling/v2beta2 API version of HorizontalPodAutoscaler is no
longer served as of v1.26.</p>
</blockquote>
<p>Read more: <a href="https://kubernetes.io/docs/reference/using-api/deprecation-guide/#horizontalpodautoscaler-v126" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/using-api/deprecation-guide/#horizontalpodautoscaler-v126</a></p>
<p>So the solution might be either changing API version to <code>autoscaling/v2</code> in your manifests or use older version of Minikube/Kubernetes.</p>
