Last active
October 18, 2022 11:18
-
-
Save yankay/8711b7413cb8eded7a7133c4f4d7d387 to your computer and use it in GitHub Desktop.
快速安装 nfs-subdir-external-provisioner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| helm repo add community https://release.daocloud.io/chartrepo/community | |
| helm install nfs-subdir-external-provisioner community/nfs-subdir-external-provisioner \ | |
| --set image.repository=k8s.m.daocloud.io/sig-storage/nfs-subdir-external-provisioner \ | |
| --set nfs.server=10.6.108.184 \ | |
| --set nfs.path=/nfs/exports/myshare | |
| kubectl patch storageclass nfs-client -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' | |
| # 要点:需要在客户端安装nfs-utils |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment