kubernetes-sigs / node-feature-discovery

Node feature discovery for Kubernetes
Apache License 2.0
775 stars 240 forks source link

helm deploy nfd-topology-updater pod status is CrashLoopBackOff #810

Closed wangzihao05 closed 2 years ago

wangzihao05 commented 2 years ago

What happened:

when I use helm to install nfd-topology-updater,it encountered that nfd-topology-updater pod status is CrashLoopBackoff. Then I use "kubectl logs -f pod" to see the logs.It says that "failed to obtain node resource information: failed to get allocatable resources (ensure that KubeletPodResourcesGetAllocatable feature gate is eabled): rpc error:code = Unimplemented desc=unknown method get allocatableResources for service v1.PodResourcesLister".

I just change chart that /node-featrue-discovery/values.yaml, "Topology Updater: enable: true createCRDs: true"

What you expected to happen: Topology Updater pod can start successfully and I can get topology CR that it detects

How to reproduce it (as minimally and precisely as possible): just change chart that /node-featrue-discovery/values.yaml, "Topology Updater: enable: true createCRDs: true" then use helm install values command to install node-feature-discover

Anything else we need to know?:

Environment:

marquiz commented 2 years ago

What's your kubelet config? Have you enabled KubeletPodResourcesGetAllocatable in kubelet as the error suggests?

wangzihao05 commented 2 years ago

What's your kubelet config? Have you enabled KubeletPodResourcesGetAllocatable in kubelet as the error suggests?

Thanks.My kubernetes version is 1.20.10.I saw the kubernetes.io just now.The doc says that KubeletPodResourcesGetAllocatable is since 1.21 until 1.22.So my kubernetes doesn't support it.

marquiz commented 2 years ago

Thanks.My kubernetes version is 1.20.10.I saw the kubernetes.io just now.The doc says that KubeletPodResourcesGetAllocatable is since 1.21 until 1.22.So my kubernetes doesn't support it.

Ah, true. You need to update K8s in order to get nfd-topologyupdater to run. /close

k8s-ci-robot commented 2 years ago

@marquiz: Closing this issue.

In response to [this](https://github.com/kubernetes-sigs/node-feature-discovery/issues/810#issuecomment-1112979066): >> Thanks.My kubernetes version is 1.20.10.I saw the kubernetes.io just now.The doc says that KubeletPodResourcesGetAllocatable is since 1.21 until 1.22.So my kubernetes doesn't support it. > >Ah, true. You need to update K8s in order to get nfd-topologyupdater to run. >/close 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/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.