BlueXIII's Blog

热爱技术,持续学习

0%

K8S离线部署笔记-12-NFS动态存储

下载镜像

1
2
3
4
5
6
7
8
# 联网环境
docker pull quay.io/external_storage/nfs-client-provisioner:latest
docker save -o nfs-client-provisioner.tar quay.io/external_storage/nfs-client-provisioner

# 离线环境
docker load -i nfs-client-provisioner.tar
docker tag quay.io/external_storage/nfs-client-provisioner registry.yourcompany.com:5000/external_storage/nfs-client-provisioner
docker push registry.yourcompany.com:5000/external_storage/nfs-client-provisioner

部署

1
2
3
4
5
# 配置文件详见FTP目录
kubectl create namespace nfs-client
kubectl apply -f rbac.yaml
kubectl apply -f class.yaml
kubectl apply -f deployment.yaml

参考文档