DNS problem on AWS EKS when running in private subnets

前端 未结 5 1959
自闭症患者
自闭症患者 2021-02-13 12:50

I have an EKS cluster setup in a VPC. The worker nodes are launched in private subnets. I can successfully deploy pods and services.

However, I\'m not able to perform DN

5条回答
  •  梦毁少年i
    2021-02-13 13:34

    To elaborate on the comment from @Daniel, you need:

    1. an ingress rule for UDP port 53
    2. an ingress rule for UDP on ephemeral ports (e.g. 1025–65535)

    I hadn't added (2) and was seeing CoreDNS receiving requests and trying to respond, but the response wasn't getting back to the requester.

    Some tips for others dealing with these kinds of issues, turn on CoreDNS logging by adding the log configuration to the configmap, which I was able to do with kubectl edit configmap -n kube-system coredns. See CoreDNS docs on this https://github.com/coredns/coredns/blob/master/README.md#examples This can help you figure out whether the issue is CoreDNS receiving queries or sending the response back.

提交回复
热议问题