DNS problem on AWS EKS when running in private subnets

前端 未结 5 1960
自闭症患者
自闭症患者 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条回答
  •  我在风中等你
    2021-02-13 13:49

    So I been struggling for a couple of hours i think, lost track of time, with this issue as well.

    Since i am using the default VPC but with the worker nodes inside the private subnet, it wasn't working.

    I went through the amazon-vpc-cni-k8s and found the solution.

    We have to sff the environment variable of the aws-node daemonset AWS_VPC_K8S_CNI_EXTERNALSNAT=true.

    You can either get the new yaml and apply or just fix it through the dashboard. However for it to work you have to restart the worker node instance so the ip route tables are refreshed.

    issue link is here

    thankz

提交回复
热议问题