我已经创建了一个静态配置storageClass,然后创建了PVC
现在,我删除了PVC和SC,但仍然可以从kube-controller-manager看到一些失败的日志:
ubuntu@kmaster:~$ k delete pvc task-pv-claim2
Error from server (NotFound): persistentvolumeclaims "task-pv-claim2" not found
来自kube-controller-manager的错误日志:E0305 10:23:53.767808 1 pv_controller.go:1336] error finding provisioning plugin for claim default/task-pv-claim2: storageclass.storage.k8s.io "manual" not found
I0305 10:23:53.767845 1 event.go:281] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"default", Name:"task-pv-claim2", UID:"4876b753-2c59-4fc4-b618-d56f3ae7ae99", APIVersion:"v1", ResourceVersion:"1810421", FieldPath:""}): type: 'Warning' reason: 'ProvisioningFailed' storageclass.storage.k8s.io "manual" not found
E0305 10:24:08.768023 1 pv_controller.go:1336] error finding provisioning plugin for claim default/task-pv-claim2: storageclass.storage.k8s.io "manual" not found
I0305 10:24:08.768134 1 event.go:281] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"default", Name:"task-pv-claim2", UID:"4876b753-2c59-4fc4-b618-d56f3ae7ae99", APIVersion:"v1", ResourceVersion:"1810421", FieldPath:""}): type: 'Warning' reason: 'ProvisioningFailed' storageclass.storage.k8s.io "manual" not found
E0305 10:24:23.768267 1 pv_controller.go:1336] error finding provisioning plugin for claim default/task-pv-claim2: storageclass.storage.k8s.io "manual" not found
I0305 10:24:23.768453 1 event.go:281] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"default", Name:"task-pv-claim2", UID:"4876b753-2c59-4fc4-b618-d56f3ae7ae99", APIVersion:"v1", ResourceVersion:"1810421", FieldPath:"^C
有人知道如何进行故障排除吗? 最佳答案
您可能在工作负载中使用PVC。检查您的部署,状态集,守护程序,pod等,
kubectl get deploy --all-namespaces
kubectl get ds --all-namespaces
kubectl get sts --all-namespaces
kubectl get all --all-namespaces
然后,如果您看到一个检查 list :kubectl get <resource> <resource-name> -o=yaml
寻找PersistentVolumeClaim
🔍🔬🕵️关于kubernetes - PersistentVolumeClaim已删除,但我可以在kube-controller-manager中看到pvc置备失败的日志sitll,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/62926947/