kube-state-metrics: Failed to list *v2alpha1.CronJob: the server could not find the requested resource
kubectl get nodes
NAME STATUS ROLES AGE VERSION
172.16.1.64 Ready <none> 20d v1.8.1
172.16.1.65 Ready <none> 20d v1.8.1
172.16.1.66 Ready <none> 20d v1.8.1
ld not find the requested resource
E1106 07:09:40.573135 1 reflector.go:205] k8s.io/kube-state-metrics/collectors/cronjob.go:93: Failed to list *v2alpha1.CronJob: the server could not find the requested resource
E1106 07:09:41.574269 1 reflector.go:205] k8s.io/kube-state-metrics/collectors/cronjob.go:93: Failed to list *v2alpha1.CronJob: the server could not find the requested resource
E1106 07:09:42.575712 1 reflector.go:205] k8s.io/kube-state-metrics/collectors/cronjob.go:93: Failed to list *v2alpha1.CronJob: the server could not find the requested resource
E1106 07:09:43.576884 1 reflector.go:205] k8s.io/kube-state-metrics/collectors/cronjob.go:93: Failed to list *v2alpha1.CronJob: the server could not find the requested resource
E1106 07:09:44.578064 1 reflector.go:205] k8s.io/kube-state-metrics/collectors/cronjob.go:93: Failed to list *v2alpha1.CronJob: the server could not find the requested resource
E1106 07:09:45.581133 1 reflector.go:205] k8s.io/kube-state-metrics/collectors/cronjob.go:93: Failed to list *v2alpha1.CronJob: the server could not find the requested resource
E1106 07:09:46.582299 1 reflector.go:205] k8s.io/kube-state-metrics/collectors/cronjob.go:93: Failed to list *v2alpha1.CronJob: the server could not find the requested resource
E1106 07:09:47.583628 1 reflector.go:205] k8s.io/kube-state-metrics/collectors/cronjob.go:93: Failed to list *v2alpha1.CronJob: the server could not find the requested resource
E1106 07:09:48.584764 1 reflector.go:205] k8s.io/kube-state-metrics/collectors/cronjob.go:93: Failed to list *v2alpha1.CronJob: the server could not find the requested resource
E1106 07:09:49.586064 1 reflector.go:205] k8s.io/kube-state-metrics/collectors/cronjob.go:93: Failed to list *v2alpha1.CronJob: the server could not find the requested resource
pls help me `
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 25 (14 by maintainers)
@brancz This is the change I made:
The error is still:
Error from server (BadRequest): a container name must be specified for pod kube-state-metrics-7598f64994-l2dp5, choose one of: [kube-state-metrics addon-resizer]
EDIT: I forgot--collectors=podsand I removednamespacesandhorizontalpodautoscalersand it works now!!!It likes that
- --collectors=daemonsets, pods, ...