Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

[aws-efs] allow mounting by DNS and not FSID #422

Closed
djdevin opened this issue Oct 25, 2017 · 3 comments · Fixed by #1070
Closed

[aws-efs] allow mounting by DNS and not FSID #422

djdevin opened this issue Oct 25, 2017 · 3 comments · Fixed by #1070
Assignees

Comments

@djdevin
Copy link

djdevin commented Oct 25, 2017

We have a CNAME mapped to our EFS DNS name for ease of use and cross-environment usage (so nfs.ENVIRONMENT_HOST.com will always point to the correct place)

This might be a Linux or Openshift issue because it does something weird where even though we didn't pass the DNS name, the DNS name was mounted into this pod. I think it's going to use it because it was previously mounted somewhere on that host machine. Running the provisioner on a machine with no NFS mounts is fine. Take a look at this

F1025 22:26:23.928789       1 efs-provisioner.go:71] no mount entry found for fs-ad138fe4.efs.us-east-1.amazonaws.com among entries overlay:/, proc:/proc, tmpfs:/dev,
[snip] 
mqueue:/dev/mqueue, nfs.test.env.example.com:/persistentvolumes:/persistentvolumes, /dev/mapper/atomicos-root:/dev/termination-log,

So as we can see it's definitely mounted but under a different DNS name, it will never find it.

@wongma7
Copy link
Contributor

wongma7 commented Oct 28, 2017

Yes, I will add a way for you to specify the DNS name. I guess via ENV var.

Idea behind this strict checking of the mount entry is paranoia that we don't touch something local d or some other nfs mount if the mount point was e.g. mistyped

@OverlordQ
Copy link

Need this to work with specifying IPs also. We're not leveraging the Amazon provided DNS.

@wongma7
Copy link
Contributor

wongma7 commented Oct 3, 2018

If you don't need these safeguards there is no practical difference between the efs provisioner and nfs-client https://github.com/kubernetes-incubator/external-storage/tree/master/nfs-client . You can specify mountOptions for nfs-client now and there isn't currently a way for efs provisioner to leverage the efs mount helper (see #725) so nfs-client can be a drop-in replacement 100% of the time https://github.com/kubernetes-incubator/external-storage/tree/master/nfs-client

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants