NVIDIA / gpu-feature-discovery

GPU plugin to the node feature discovery for Kubernetes
Apache License 2.0
292 stars 47 forks source link

Fix create permission error when nodefeature enabled #51

Closed Swalloow closed 1 year ago

Swalloow commented 1 year ago

When enabling nodefeature in chart settings, get an error as below. Need to add create permission in Role.

failed to create NodeFeature object "nvidia-features-for-node-gpu01": 
nodefeatures.nfd.k8s-sigs.io is forbidden: User "system:serviceaccount:node-feature-discovery:gpu-feature-discovery" cannot create resource "nodefeatures" in API group "nfd.k8s-sigs.io" in the namespace "node-feature-discovery"
elezar commented 1 year ago

I created https://gitlab.com/nvidia/kubernetes/gpu-feature-discovery/-/merge_requests/176 to add this change to the gitlab repo and have merged it. Thanks for the the contribution.