当前位置:   article > 正文

部署storageclass踩坑记录_allowvolumeexpansion

allowvolumeexpansion

1.部署完storageclass以后ALLOWVOLUMEEXPANSION的状态为false,遇到这个问题,需要修改sc的yaml文件,需要添加allowVolumeExpansion: true这行参数,在进行重新部署,ALLOWVOLUMEEXPANSION的状态就变成true了
在这里插入图片描述

2.pvc无法绑定pv,查看pvc的状态,为:waiting for a volume to be created, either by external provisioner “fuseim.pri/ifs” or manually created by system administrator,遇到这个问题,需要检查nfs-client-provisioner pod的日志。

3.报错如下:E0511 08:06:54.975126 1 controller.go:766] Unexpected error getting claim reference to claim “logging/data-es-cluster-0”: selfLink was empty, can’t make reference
getting "unexpected error getting claim reference: selfLink was empty, can’t make reference
这个是由于k8s 1.20以后禁用了selfLink,需要在master节点的/etc/kubernetes/manifests/kube-apiserver.yaml文件添加
#在spec.containers.command结尾处增加:

- --feature-gates=RemoveSelfLink=false
  • 1

并重启kubelet

systemctl restart kubelet
  • 1

4.报错:Last error: “unable to create directory to provision new pv: mkdir /persistentvolumes/ms-node-controller-data-pvc-pvc-81c7d3e5-c5da-4903-b725-8f45879e7d5f: read-only file system”.

这个报错是/etc/ports的配置文件里将rw放在后面位置了,需要调整到第一个位置。然后重启nfs服务就可以了。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/420124
推荐阅读
相关标签
  

闽ICP备14008679号