stefanprodan/k8s-prom-hpa

cannot get anything when curl

junsionzhang opened this issue · 2 comments

when finished it , I curl kubectl get --raw /apis/custom.metrics.k8s.io/v1beta1 | jq and get
{
"kind": "APIResourceList",
"apiVersion": "v1",
"groupVersion": "custom.metrics.k8s.io/v1beta1",
"resources": []
}
the resources is nothing. From the pod ,I get the logs
Response Body: {"kind":"SubjectAccessReview","apiVersion":"authorization.k8s.io/v1beta1","metadata":{"creationTimestamp":null},"spec":{"nonResourceAttributes":{"path":"/","verb":"get"},"user":"system:anonymous","group":["system:unauthenticated"]},"status":{"allowed":false}}

gajus commented

I would start by checking the logs of custom-metrics-apiserver.

Chances are that custom-metrics-apiserver is unable to communicate with Prometheus API.

Any update on this? I am facing the same issue, checked the logs of custom-metrics-apiserver and they look okay to me. Any help would be really appreciated.