Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to watch *v1.Lease: failed to list *v1.Lease: "spec.nodeName" is not a known field selector: only "metadata.name", "metadata.namespace"" logger="UnhandledError" #2581

Open
jicki opened this issue Dec 31, 2024 · 3 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. kind/support Categorizes issue or PR as a support question. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@jicki
Copy link

jicki commented Dec 31, 2024

What happened:

W1231 07:42:35.427334       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.Deployment: "spec.nodeName" is not a known field selector: only "metadata.name", "metadata.namespace"
E1231 07:42:35.427789       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.Deployment: failed to list *v1.Deployment: \"spec.nodeName\" is not a known field selector: only \"metadata.name\", \"metadata.namespace\"" logger="UnhandledError"
W1231 07:42:38.319981       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.Service: "spec.nodeName" is not a known field selector: only "metadata.name", "metadata.namespace"
E1231 07:42:38.320070       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.Service: failed to list *v1.Service: \"spec.nodeName\" is not a known field selector: only \"metadata.name\", \"metadata.namespace\"" logger="UnhandledError"
W1231 07:42:38.376072       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.ReplicaSet: "spec.nodeName" is not a known field selector: only "metadata.name", "metadata.namespace"
E1231 07:42:38.376172       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.ReplicaSet: failed to list *v1.ReplicaSet: \"spec.nodeName\" is not a known field selector: only \"metadata.name\", \"metadata.namespace\"" logger="UnhandledError"
W1231 07:42:41.767512       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.ResourceQuota: "spec.nodeName" is not a known field selector: only "metadata.name", "metadata.namespace"
E1231 07:42:41.767625       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.ResourceQuota: failed to list *v1.ResourceQuota: \"spec.nodeName\" is not a known field selector: only \"metadata.name\", \"metadata.namespace\"" logger="UnhandledError"
W1231 07:42:44.752555       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.ConfigMap: "spec.nodeName" is not a known field selector: only "metadata.name", "metadata.namespace"
E1231 07:42:44.752634       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: \"spec.nodeName\" is not a known field selector: only \"metadata.name\", \"metadata.namespace\"" logger="UnhandledError"
W1231 07:42:39.792571       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.ResourceQuota: "spec.nodeName" is not a known field selector: only "metadata.name", "metadata.namespace"
E1231 07:42:39.792644       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.ResourceQuota: failed to list *v1.ResourceQuota: \"spec.nodeName\" is not a known field selector: only \"metadata.name\", \"metadata.namespace\"" logger="UnhandledError"
W1231 07:42:40.001179       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.Ingress: "spec.nodeName" is not a known field selector: only "metadata.name", "metadata.namespace"
E1231 07:42:40.001281       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.Ingress: failed to list *v1.Ingress: \"spec.nodeName\" is not a known field selector: only \"metadata.name\", \"metadata.namespace\"" logger="UnhandledError"
W1231 07:42:41.003553       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.CronJob: "spec.nodeName" is not a known field selector: only "metadata.name", "metadata.namespace"
E1231 07:42:41.003637       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.CronJob: failed to list *v1.CronJob: \"spec.nodeName\" is not a known field selector: only \"metadata.name\", \"metadata.namespace\"" logger="UnhandledError"
W1231 07:42:41.248122       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.ReplicationController: field label not supported: spec.nodeName
E1231 07:42:41.248259       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.ReplicationController: failed to list *v1.ReplicationController: field label not supported: spec.nodeName" logger="UnhandledError"
W1231 07:42:43.452479       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.Service: "spec.nodeName" is not a known field selector: only "metadata.name", "metadata.namespace"
E1231 07:42:43.452546       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.Service: failed to list *v1.Service: \"spec.nodeName\" is not a known field selector: only \"metadata.name\", \"metadata.namespace\"" logger="UnhandledError"
W1231 07:42:33.416265       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.Job: field label "spec.nodeName" not supported for Job
E1231 07:42:33.416332       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.Job: failed to list *v1.Job: field label \"spec.nodeName\" not supported for Job" logger="UnhandledError"
W1231 07:42:36.290339       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.PersistentVolumeClaim: "spec.nodeName" is not a known field selector: only "metadata.name", "metadata.namespace"
E1231 07:42:36.290445       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.PersistentVolumeClaim: failed to list *v1.PersistentVolumeClaim: \"spec.nodeName\" is not a known field selector: only \"metadata.name\", \"metadata.namespace\"" logger="UnhandledError"
W1231 07:42:37.339081       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.NetworkPolicy: "spec.nodeName" is not a known field selector: only "metadata.name", "metadata.namespace"
E1231 07:42:37.339447       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.NetworkPolicy: failed to list *v1.NetworkPolicy: \"spec.nodeName\" is not a known field selector: only \"metadata.name\", \"metadata.namespace\"" logger="UnhandledError"
W1231 07:42:38.140239       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.ReplicationController: field label not supported: spec.nodeName
E1231 07:42:38.140341       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.ReplicationController: failed to list *v1.ReplicationController: field label not supported: spec.nodeName" logger="UnhandledError"
W1231 07:42:43.263669       1 reflector.go:561] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.DaemonSet: "spec.nodeName" is not a known field selector: only "metadata.name", "metadata.namespace"
E1231 07:42:43.263762       1 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.DaemonSet: failed to list *v1.DaemonSet: \"spec.nodeName\" is not a known field selector: only \"metadata.name\", \"metadata.namespace\"" logger="UnhandledError"

How to reproduce it (as minimally and precisely as possible):

Update v2.13.0 to v2.14.0

Anything else we need to know?:

Environment:

  • kube-state-metrics version: v2.14.0
  • Kubernetes version (use kubectl version): v1.24.17
@jicki jicki added the kind/bug Categorizes issue or PR as related to a bug. label Dec 31, 2024
@k8s-ci-robot
Copy link
Contributor

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. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Dec 31, 2024
@liangyuanpeng
Copy link
Contributor

i think kubernetes 1.24 is not support version, you may need to upgrade your kubernetes version.

@liangyuanpeng
Copy link
Contributor

/kind support

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. kind/support Categorizes issue or PR as a support question. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

3 participants