volcano-sh / devices

Device plugins for Volcano, e.g. GPU
Apache License 2.0
103 stars 43 forks source link

create pod UnexpectedAdmissionError #6

Closed king-jingxiang closed 4 years ago

king-jingxiang commented 4 years ago

For k8s v1.17.9 UnexpectedAdmissionError due to lack of pod update verbs

pod describe

  Warning  UnexpectedAdmissionError  10s   kubelet, amax-pcl  Update plugin resources failed due to rpc error: code = Unknown desc = failed to update pod annotation pods "pod1" is forbidden: User "system:serviceaccount:kube-system:volcano-device-plugin" cannot update resource "pods" in API group "" in the namespace "default", which is unexpected.

rbac need update verbs

  - apiGroups: [""]
    resources: ["pods"]
    verbs: ["get", "list"]
k82cn commented 4 years ago

/cc @hzxuzhonghu

hzxuzhonghu commented 4 years ago

fixed by #7