Kubernetes version : 1.13 on Amazon's EKS
I am trying to follow this guide https://nuvalence.io/building-a-k8s-autoscaler-with-custom-metrics/ to enable autoscaling based on rabbitmq data in our Kubernetes cluster by using the prometheus-adapter.
However, running
kubectl get --raw /apis/external.metrics.k8s.io/v1beta1 | jq .
returns Error from server (NotFound): the server could not find the requested resource
which tells me that external metrics are not for some reason supported / enabled.
Custom ones do though, so kubectl get --raw /apis/custom.metrics.k8s.io/v1beta1 | jq .
returns valid data.
The issue is that rabbitmq should definitively be an external metric and I spent hours trying to make it work as custom without any success.
No idea how to proceed with the external metrics or an indication about where to start searching? Should this api endpoint be there by default or there is an extension that enables it?