1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| $ helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/ $ helm show values nfs-subdir-external-provisioner/nfs-subdir-external-provisioner $ helm install nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \ --set nfs.server=10.4.7.201 \ --set nfs.path=/data/nfs \ --set image.repository=registry.cn-hangzhou.aliyuncs.com/iuxt/nfs-subdir-external-provisioner
$ kubectl get pod nfs-subdir-external-provisioner-68fff55cc9-s7msb -o yaml apiVersion: v1 kind: Pod metadata: labels: app: nfs-subdir-external-provisioner name: nfs-subdir-external-provisioner-68fff55cc9-s7msb spec: containers: - env: - name: PROVISIONER_NAME value: cluster.local/nfs-subdir-external-provisioner - name: NFS_SERVER value: 10.4.7.201 - name: NFS_PATH value: /data/nfs image: registry.cn-hangzhou.aliyuncs.com/iuxt/nfs-subdir-external-provisioner:v4.0.2 name: nfs-subdir-external-provisioner volumes: - name: nfs-subdir-external-provisioner-root nfs: path: /data/nfs server: 10.4.7.201 ...... $ kubectl get sc nfs-client -o yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: annotations: meta.helm.sh/release-name: nfs-subdir-external-provisioner meta.helm.sh/release-namespace: default name: nfs-client provisioner: cluster.local/nfs-subdir-external-provisioner allowVolumeExpansion: true parameters: archiveOnDelete: "true" reclaimPolicy: Delete volumeBindingMode: Immediate ......
|