kubernetes-retired / external-storage

[EOL] External storage plugins, provisioners, and helper libraries
Apache License 2.0
2.69k stars 1.6k forks source link

Does nfs provisioner support mount options or parameters? #1344

Closed cainzhong closed 4 years ago

cainzhong commented 4 years ago

Does nfs provisioner support mount options or parameters? Something like anonuid, anongid, root_squash. or (rw,sync,anonuid=1999,anongid=1999,root_squash

I have tried

kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: nfs-dynamic
provisioner: example.com/nfs
parameters:
   anonuid: "2000"
   anongid: "2000"
mountOptions:
  - rw
  - root_squash
  - anonuid=10000
  - anongid=10000

But it doesn't work. It failed with below message.

Failed to provision volume with StorageClass "nfs-dynamic": error validating options for volume: invalid parameter: "anongid"

sopak commented 4 years ago

Hi, I did try to solve it here https://github.com/kubernetes-incubator/external-storage/pull/1320

Still waiting for review.

cainzhong commented 4 years ago

Hi, I did try to solve it here #1320

Still waiting for review.

Great. Nice job. What can I do to make your PR been merged? Seems the PR has been requested a few months ago.

nikhita commented 4 years ago

@sopak Thanks for reporting the issue!

This repo is no longer being maintained and we are in the process of archiving this repo. Please see https://github.com/kubernetes/org/issues/1563 for more details.

For nfs provisioners, we'll be continuing work in https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner. We have created a tracking issue to ensure the PR is pulled in after migration - https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner/issues/5.

Going to close this issue in order to archive this repo. Apologies for the churn and thanks for your patience! :pray: