-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NFS volume cant be mounted via service name because of broken DNS #2218
Comments
Could you please try to use the full DNS name for the service, e.g., kubernetes-nfs-service-default.svc.cluster.local Please check https://github.com/kubernetes/dns/blob/master/docs/specification.md |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@jingxu97 minikube still doesn't resolve the FQDN address but GKE does. minikube version: v0.28.0 I applied the same PersistentVolume yaml (see below) to minikube and GKE cluster. On minikube, mounting volume always failed.
pv-yaml: => this worked on GKE
|
/reopen Tested on GKE and minikube. And I can confirm @dbaba results. EDIT: After some more digging, I think this is related to the fact that In other words, when the kubelet tries to mount the volume and resolves I tried to edit Before the change: minikube ssh
_ _
_ _ ( ) ( )
___ ___ (_) ___ (_)| |/') _ _ | |_ __
/' _ ` _ `\| |/' _ `\| || , < ( ) ( )| '_`\ /'__`\
| ( ) ( ) || || ( ) || || |\`\ | (_) || |_) )( ___/
(_) (_) (_)(_)(_) (_)(_)(_) (_)`\___/'(_,__/'`\____)
$ cat /etc/resolv.conf
nameserver 10.0.2.3
$ nslookup nfs-server.default.svc.cluster.local
Server: 10.0.2.3
Address 1: 10.0.2.3 10.0.2.3
nslookup: can't resolve 'nfs-server.default.svc.cluster.local' After adding kube-dns to $minikube ssh
_ _
_ _ ( ) ( )
___ ___ (_) ___ (_)| |/') _ _ | |_ __
/' _ ` _ `\| |/' _ `\| || , < ( ) ( )| '_`\ /'__`\
| ( ) ( ) || || ( ) || || |\`\ | (_) || |_) )( ___/
(_) (_) (_)(_)(_) (_)(_)(_) (_)`\___/'(_,__/'`\____)
$ cat /etc/resolv.conf
nameserver 172.17.0.2
nameserver 10.0.2.3
$ nslookup nfs-server.default.svc.cluster.local
Server: 172.17.0.2
Address 1: 172.17.0.2 kube-dns-86f4d74b45-8g6dk
Name: nfs-server.default.svc.cluster.local
Address 1: 10.109.11.156 nfs-server.default.svc.cluster.local |
@danielepolencic: you can't re-open an issue/PR unless you authored it or you are assigned to it. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Why this issue does not receive attention? Prevents of properly test some setups involving shared volumes. Not sure what to do here... any thoughts? |
Just a side note here, I managed to workaround this issue by changing the systemd-resolved configuration. Steps:
Possible issues:
|
BUG REPORT
Minikube version: v0.23.0
What happened:
NFS Mount fails because of broken DNS / kuberntes nfs service name could not be resolved
What you expected to happen:
NFS Volume is mounted
How to reproduce it (as minimally and precisely as possible):
** Workaround **:
Possible fix:
The text was updated successfully, but these errors were encountered: