node节点挂载nfs目录
[root@edge-node1 ~]# mount -t nfs 10.10.100.168:/usr/local/k8s/redis/pv1 /mnt
mount: wrong fs type, bad option, bad superblock on 10.10.100.168:/usr/local/k8s/redis/pv1,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yum install nfs-utils -y 
再次挂载即可成功
删除pv
删除pv前,需要先删除pvc,否则会直接卡在delete,不动,因为pv中的空间被pvc占用,无法释放所有空间。
kubectl delete pvc redis-data-redis-app-0

未完待续

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐