kubernetes报 unexpected error getting claim reference: selfLink was empty, can't make reference

啊啊 发表于: 2021-04-21   最后更新时间: 2021-04-21 14:45:30   146 游览

我在kubernetes中使用pv,在绑定pvc的时候,一直不成功,pvc报:

no persistent volumes available for this claim and no storage class is set

我使用的是 nfs-client-provisioner,查看其日志发现

kubectl logs -f nfs-client-provisioner-6449d655d9-hmmgb

报:

I0421 05:56:14.312000       1 controller.go:987] provision "my-space/datadir-kafka-0" class "nfs-storage": started
E0421 05:56:14.322457       1 controller.go:1004] provision "my-space/datadir-kafka-0" class "nfs-storage": unexpected error getting claim reference: selfLink was empty, can't make reference
I0421 05:56:14.331860       1 controller.go:987] provision "my-space/datadir-kafka-1" class "nfs-storage": started
E0421 05:56:14.341974       1 controller.go:1004] provision "my-space/datadir-kafka-1" class "nfs-storage": unexpected error getting claim reference: selfLink was empty, can't make reference
I0421 05:56:14.351496       1 controller.go:987] provision "my-space/datadir-kafka-2" class "nfs-storage": started
E0421 05:56:14.363755       1 controller.go:1004] provision "my-space/datadir-kafka-2" class "nfs-storage": unexpected error getting claim reference: selfLink was empty, can't make reference

kubernetes的版本:v1.20.2

我该如何解决?



发表于 20天前

找不到想要的答案?

我要提问
相关
提问