k8s.gcr.io/sig-storage/nfs-subdir-external-provisioner离线docker镜像

寿和通
2023-12-01

docker镜像
k8s.gcr.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2
被墙无法pull,使用nfs方式提供k8s PVC必须的镜像包。
本人小水管拉下来的,拿走不谢。<万恶到GFW,一万个鄙视。。。>

使用方法:
#解压
tar -xvf k8s.gcr.io_sig-storage_nfs-subdir-external-provisioner_v4.0.2.tar.gz
#加载到本地
docker load --input nfs-subdir-external-provisioner.tar

注意:还在用老土 nfs-client-provisioner 然后修改kube-apiserver.yaml 添加参数增加 - --feature-gates=RemoveSelfLink=false的抓紧跟上时代步伐,用nfs-subdir-external-provisioner吧,nfs-client-provisioner已经不在更新维护

用老土 nfs-client-provisioner会报错:provision "ngtest/test-nfs" class "nfs-client": unexpected error getting claim reference: selfLink was empty, can't make reference
elfLink was empty 在k8s集群 v1.20之前都存在,在v1.20之后被删除,需要在/etc/kubernetes/manifests/kube-apiserver.yaml 添加参数增加 - --feature-gates=RemoveSelfLink=false《===强烈不推荐点方式

nfs-subdir-external-provisioner使用方法

​#下载
wget https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner/releases/download/nfs-subdir-external-provisioner-4.0.16/nfs-subdir-external-provisioner-4.0.16.tgz

#解压
tar -xvf nfs-subdir-external-provisioner-4.0.16.tgz

#安装
helm install  nfs-subdir-external-provisioner nfs-subdir-external-provisioner/ --set nfs.server=192.168.x.x --set nfs.path=/home/nfsxxxdir

#拉取镜像k8s.gcr.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2 失败,使用上面方式加载离线镜像,每个k8s的worker节点都要加载,或者push到私有镜像仓库

 

零币下载地址:

镜像k8s.gcr.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2-kubernetes文档类资源-CSDN下载

 类似资料: