kubernetes / kube-state-metrics

Add-on agent to generate and expose cluster-level metrics.
https://kubernetes.io/docs/concepts/cluster-administration/kube-state-metrics/
Apache License 2.0
5.35k stars 2k forks source link

failed to list *v2.HorizontalPodAutoscaler: the server could not find the requested resource #2392

Closed wang007 closed 4 months ago

wang007 commented 4 months ago

What happened: E0517 08:27:54.618278 1 reflector.go:148] pkg/mod/k8s.io/client-go@v0.27.5/tools/cache/reflector.go:231: Failed to watch v2.HorizontalPodAutoscaler: failed to list v2.HorizontalPodAutoscaler: the server could not find the requested resource

What you expected to happen: list and watch hpa.

kube-state-metrics uses v2 hpa, but api-server does not support v2 hpa. Is it compatible?

Environment: Client Version: v1.29.1 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.22.13

k8s-ci-robot commented 4 months ago

This issue is currently awaiting triage.

If kube-state-metrics contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
CatherineF-dev commented 4 months ago

Not compatible. https://github.com/kubernetes/kube-state-metrics?tab=readme-ov-file#compatibility-matrix

wang007 commented 4 months ago

ok. thx