当前位置:网站首页>kubernetes - deploy nfs storage class

kubernetes - deploy nfs storage class

2022-08-01 18:53:00 51CTO

一、部署csi-driver-nfs

The code repository has replaced the mirror address,可直接使用.

      
      
git clone https://gitee.com/beijing-walking-in-the-clouds_0/csi-driver-nfs.git
cd deploy/v3.0.0
kubectl apply -f .
  • 1.
  • 2.
  • 3.

二、部署nfs-server

cdto the directory you just cloned

      
      
cd csi-driver-nfs/deploy/example/nfs-provisioner
kubectl apply -f nfs-server.yaml
  • 1.
  • 2.

三、部署storageclass

cdto the directory you just cloned

      
      
cd csi-driver-nfs/deploy/example/
kubectl apply -f storageclass-nfs.yaml
  • 1.
  • 2.

四、测试storageclass动态创建pv

cdto the directory you just cloned

      
      
cd csi-driver-nfs/deploy/example/
kubectl apply -f pvc-nfs-csi-dynamic.yaml
  • 1.
  • 2.

通过getcommand to see if it is dynamically producedpv

kubernetes-部署nfs存储类_k8s部署nfs


原网站

版权声明
本文为[51CTO]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/213/202208011836542329.html