elegant-secretary-74577
08/01/2024, 3:37 PM/ # traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 46 byte packets
1 10.0.110.156 (10.0.110.156) 0.008 ms 0.008 ms 0.003 ms
2 240.2.140.15 (240.2.140.15) 549.432 ms 240.2.140.12 (240.2.140.12) 5.604 ms 5.598 ms
3 242.6.125.3 (242.6.125.3) 6.360 ms 242.6.125.133 (242.6.125.133) 6.672 ms
/ # nslookup <http://google.com|google.com>
;; connection timed out; no servers could be reached
When I check my kube-dns settings, I see this
❯ kubectl get svc -n kube-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kube-dns ClusterIP 172.20.0.10 <none> 53/UDP,53/TCP,9153/TCP 12h
Here is what i weird, all my networking is on the 10.x.x.x/16 and I have verified the subnets attached are 10.x.x.x. So I am not sure how this is being set. Also, I am not importing any coredns stuff into the cluster (only what is created)...
Source code can be found here: https://github.com/number3ai/pegasus/blob/main/aws/eks/eks.ts and would love any helpmodern-zebra-45309
08/01/2024, 3:56 PMmodern-zebra-45309
08/01/2024, 3:58 PMmodern-zebra-45309
08/01/2024, 3:59 PMmodern-zebra-45309
08/01/2024, 4:05 PMnslookup <http://google.com|google.com> 8.8.8.8
• Did you enable DNS support in your VPC? It should be enabled by default, but better to double check.
• If you launch an EC2 instance in a public subnet of your VPC, do you encounter the same problem? If so, you can rule out Kubernetes entirely and focus on your VPC.
If it turns out that it is a Kubernetes problem, there's a helpful DNS debugging guide in the documentation.elegant-secretary-74577
08/01/2024, 5:36 PMelegant-secretary-74577
08/01/2024, 6:46 PM❯ kubectl run -i --tty --rm dns-test --image=busybox --restart=Never -- sh
If you don't see a command prompt, try pressing enter.
/ #
/ #
/ # nslookup <http://google.com|google.com> 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8:53
Non-authoritative answer:
Name: <http://google.com|google.com>
Address: 2607:f8b0:400a:80a::200e
Non-authoritative answer:
Name: <http://google.com|google.com>
Address: 172.217.14.206
elegant-secretary-74577
08/01/2024, 6:46 PMelegant-secretary-74577
08/01/2024, 6:46 PMelegant-secretary-74577
08/01/2024, 6:48 PMenableDnsHostnames
set to true
https://github.com/number3ai/pegasus/blob/main/aws/eks/eks.ts#L9-L20elegant-secretary-74577
08/01/2024, 6:48 PMmodern-zebra-45309
08/01/2024, 7:11 PMtrue
) which is not the same. See DNS attributes in your VPC in the AWS docs for what they mean and the effects they have.modern-zebra-45309
08/01/2024, 7:12 PMelegant-secretary-74577
08/02/2024, 1:31 PMelegant-secretary-74577
08/04/2024, 2:07 PM