0
点赞
收藏
分享

微信扫一扫

部署storageclass踩坑记录


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

部署storageclass踩坑记录_重启

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

并重启kubelet

systemctl restart kubelet

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服务就可以了。


举报

相关推荐

flink 踩坑记录

踩坑记录一

错误踩坑记录

vue 踩坑记录

Docker踩坑记录

RabbitMq踩坑记录

TabLayou踩坑记录

0 条评论