k8s-prom-hpa icon indicating copy to clipboard operation
k8s-prom-hpa copied to clipboard

cannot get anything when curl

Open junsionzhang opened this issue 6 years ago • 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}}

junsionzhang avatar Jul 20 '18 10:07 junsionzhang

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

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

gajus avatar Aug 10 '18 22:08 gajus

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.

swatisehgal avatar Oct 05 '18 02:10 swatisehgal