各节点部署
yum -y install nfs-utils
下载nfs-client
yum -y install git
https://github.com/kubernetes-incubator/external-storage
git clone https://github.com/kubernetes-incubator/external-storage.git
cd nfs-client/deploy
vim deployment.yaml
image: registry.cn-hangzhou.aliyuncs.com/kubeapps/quay-nfs-client-provisioner
env:
- name: PROVISIONER_NAME
value: fuseim.pri/ifs
- name: NFS_SERVER
value: 172.28.11.200
- name: NFS_PATH
value: /data/nfs
volumes:
- name: nfs-client-root
nfs:
server: 172.28.11.200
path: /data/nfs
kubectl create -f rbac.yaml
kubectl create -f deployment.yaml
kubectl create -f class.yaml