I have prometheus deployed in my cluster within my custom namespace and prometheus adapter deployed within the same cluster and within the same namespace:
But when I execute:
$ kubectl get --raw /apis/custom.metrics.k8s.io/v1beta1
I see empty response:
{"kind":"APIResourceList","apiVersion":"v1","groupVersion":"custom.metrics.k8s.io/v1beta1","resources":[]}
Although prometheus contains metrics:
I configured prometheus url inside prometheus adapter YML:
How to fix it ?