Skip to content
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

Bug: IPv6 Only Cluster fails to resolve svc.cluster.local addresses #1348

Open
xorl opened this issue Apr 21, 2024 · 3 comments
Open

Bug: IPv6 Only Cluster fails to resolve svc.cluster.local addresses #1348

xorl opened this issue Apr 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@xorl
Copy link

xorl commented Apr 21, 2024

Describe the bug
When deployed on an IPv6 only cluster, the app pod cannot resolve svc.cluster.local addresses as it expects an A, not a AAAA.

Error: getaddrinfo ENOTFOUND platform-oneuptime-redis-master.oneuptime.svc.cluster.local
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -3007,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'platform-oneuptime-redis-master.oneuptime.svc.cluster.local'
}

To Reproduce
Steps to reproduce the behavior:

  1. Deploy iPv6 only cluster
  2. Configure redis to bind on * and -::*
  3. Restart -app pod.
  4. See error

Expected behavior
When deployed, service should be able to to resolve AAAA addresses.
Addresses obfuscated below.

➜  kubectl -n oneuptime exec -i -t dnsutils -- nslookup platform-oneuptime-redis-master.oneuptime.svc.cluster.local
Server:		<obfuscated>
Address:	<obfuscated>#53

*** Can't find platform-oneuptime-redis-master.oneuptime.svc.cluster.local: No answer

➜  kubectl -n oneuptime exec -i -t dnsutils -- nslookup -q=AAAA platform-oneuptime-redis-master.oneuptime.svc.cluster.local
Server:		<obfuscated>
Address:	<obfuscated>#53

platform-oneuptime-redis-master.oneuptime.svc.cluster.local	has AAAA address <obfuscated>

Screenshots

Deployment Type
self-hosted - EKS (kubernetes)

@xorl xorl added the bug Something isn't working label Apr 21, 2024
@xorl
Copy link
Author

xorl commented Apr 21, 2024

Looks like this might be related, mastodon/mastodon#27043

@simlarsen
Copy link
Contributor

Not sure if this will help but you can actually change this by setting:

global:
  clusterDomain: 

@xorl
Copy link
Author

xorl commented May 2, 2024

Not sure if this will help but you can actually change this by setting:

global:
  clusterDomain: 

I am not sure that will fix it either as the domain resolves (AAAA only since there is no IPv4 address to resolve)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants