question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Service Endpoints not resolving

See original GitHub issue

Hi Canonical Team,

We started facing issues with Microk8s for the past two days where our pods are not able to communicate with each other with the service endpoint url eg:minio-service.default.svc.cluster.local, When we tried to spin up a dummy dns pod and tried to nslookup from there, we could see it’s not resolving. also even cluster.local is not being resolved but kubernetes.default is getting resolved.

microk8s kubectl exec -i -t dnsutils -- nslookup cluster.local
Server:		10.152.183.10
Address:	10.152.183.10#53

** server can't find cluster.local.ec2.internal: SERVFAIL

command terminated with exit code 1
root@ip-10-0-1-94:/home/ubuntu# microk8s kubectl exec -i -t dnsutils -- nslookup kubernetes.default
Server:		10.152.183.10
Address:	10.152.183.10#53

Name:	kubernetes.default.svc.cluster.local
Address: 10.152.183.1

Weird thing is when i just nslookup svc.ns it’s resolving without any issues.

root@ip-10-0-1-94:/home/ubuntu# microk8s kubectl exec -i -t dnsutils -- nslookup minio-service.default
Server:		10.152.183.10
Address:	10.152.183.10#53

Name:	minio-service.default.svc.cluster.local
Address: 10.152.183.246

root@ip-10-0-1-94:/home/ubuntu# microk8s kubectl exec -i -t dnsutils -- nslookup minio-service.default.svc.cluster.local
Server:		10.152.183.10
Address:	10.152.183.10#53

** server can't find minio-service.default.svc.cluster.local.ec2.internal: SERVFAIL

command terminated with exit code 1

Attaching tarball for reference. inspection-report-20211021_073518.tar.gz core-dns.log

Also the dns entry for ec2.internal is from /run/systemd/resolve/resolv.conf and not from /etc/resolv.conf as mentioned in below link. known issues Was there any breaking change or are we missing something since we started facing this issues only for the past three days.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:42 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
balchuacommented, Dec 6, 2021

Not much idea on that. But this stackoverflow looks like it is possible to open all ports from an ip. https://serverfault.com/questions/890370/open-all-ports-to-specific-ip-with-firewalld

1reaction
balchuacommented, Nov 25, 2021

That setting is beyond my knowledge, unfortunately. ☹️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot connectivity to an endpoint service from ... - AWS
I can't connect to an endpoint service from my Amazon Virtual Private Cloud (Amazon VPC) interface endpoint using AWS PrivateLink.
Read more >
Service Endpoints not resolving · Issue #2669 - GitHub
Hi Canonical Team, We started facing issues with Microk8s for the past two days where our pods are not able to communicate with...
Read more >
VNet Integration (preview) and Service Endpoints not working
Hi,. We're looking at the VNet Integration for Windows Web Apps which is currently in preview which I believe is supposed to add...
Read more >
EFS endpoint not resolving in kubernetes cluster
I have a K8S cluster launched using kops with topology=private and networking=weave. Want to mount an EFS volume to my pods but the...
Read more >
Vpc endpoints not working : r/aws - Reddit
Interface endpoints rely on DNS resolution in your VPC to resolve what is normally the public endpoint instead to the private address of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found