Re: [kubernetes/kubernetes] How to get the DNS name of a service in google cloud platform? (#58792)

5 views
Skip to first unread message

Erick Fejta

unread,
Jan 28, 2018, 1:18:16 AM1/28/18
to kubernetes/kubernetes, k8s-mirror-storage-misc, Team mention

@kubernetes/sig-network-misc @kubernetes/sig-storage-misc

Would this conversation be better on stackoverflow and/or slack?


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Mohamed Amine Jallouli

unread,
Jan 28, 2018, 2:54:59 AM1/28/18
to kubernetes/kubernetes, k8s-mirror-storage-misc, Team mention

Closed #58792.

paolasoto88

unread,
Apr 25, 2018, 7:42:03 AM4/25/18
to kubernetes/kubernetes, k8s-mirror-storage-misc, Team mention

Hi all,

is this problem solved?? I have different set-up (running a local cluster instead of GKE) but with the same NFS configuration. I obtain the same error and it is not solved by specifying the internal DNS service name.

Any help would indeed very appreciated.

Thanks

Amine Jallouli

unread,
May 1, 2018, 11:49:23 AM5/1/18
to kubernetes/kubernetes, k8s-mirror-storage-misc, Team mention

@paolasoto88 I solved the problem by just upgrading kubectl of my GKE cluster from the version 1.7.11-gke.1 to 1.8.6-gke.0 at that time and the DNS name will be enough

Arsenii Petrovich

unread,
Dec 15, 2018, 10:19:01 AM12/15/18
to kubernetes/kubernetes, k8s-mirror-storage-misc, Team mention

@mappedinn @fejta

---
apiVersion: v1
kind: Service
metadata:
  name: nfs-server
  namespace: $namespace
spec: 
  ports:
    - name: nfs
      port: 2049
    - name: mountd
      port: 20048
    - name: rpcbind
      port: 111
  selector:
    role: nfs-server

---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: nfs
  namespace: $namespace
spec:
  capacity:
    storage: ${volume}Gi
  accessModes:
    - ReadWriteMany
  nfs:
    server: nfs-server.$namespace.svc.cluster.local 
    path: "/"
ubuntu@selfportal-ubuntu:~/tezosk8s$ kubectl version
Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.1", GitCommit:"4ed3216f3ec431b140b1d899130a69fc671678f4", GitTreeState:"clean", BuildDate:"2018-10-05T16:46:06Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"10+", GitVersion:"v1.10.9-gke.5", GitCommit:"d776b4deeb3655fa4b8f4e8e7e4651d00c5f4a98", GitTreeState:"clean", BuildDate:"2018-11-08T20:33:00Z", GoVersion:"go1.9.3b4", Compiler:"gc", Platform:"linux/amd64"}

Output: mount.nfs: Failed to resolve server nfs-service.default.svc.cluster.local: Name or service not known

Am I doing something wrong? Cuz this doesn't work for 1.10 still :(
P.S. $namespace is $volume is replaced with actual values, I'm scripting in BASH.

Arsenii Petrovich

unread,
Dec 15, 2018, 10:19:22 AM12/15/18
to kubernetes/kubernetes, k8s-mirror-storage-misc, Team mention

@paolasoto88
Were you able to solve the problem?

AaronWang

unread,
Jul 21, 2020, 1:26:57 AM7/21/20
to kubernetes/kubernetes, k8s-mirror-storage-misc, Team mention

Why is that nodes on gke don't resolve to kube dns? that's so unreasonable. I face the same problem.


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

Bowei Du

unread,
Jul 21, 2020, 1:44:28 AM7/21/20
to kubernetes/kubernetes, k8s-mirror-storage-misc, Team mention

(Note that this is cloud provider specific, so likely doesn't make to open the issue again the Kubernetes repo).
cc: @mark-church: what is a good place for people to track GKE/GCP-related K8S issues?

Reply all
Reply to author
Forward
0 new messages