Setting up an EKS Node Group on a private subnet

0

According to the EKS documentation, "Amazon EKS managed node groups can be launched in both public and private subnets." However, I failed to create managed node group in a private subnet.

I have a subnet whose routing table's 0.0.0.0/0 entry is pointing to an NAT gateway (with outbound access to the Internet). When I tried to create a node group in this subnet, the creation would be stuck at the state "creating" forever and fail eventually.

Enter image description here

Enter image description here

The creation would have been successful (and quick) if I just replace the NAT gateway with an Internet Gateway.

I can't figure out why inbound access to the subnet is needed for creating a node group.

Has anyone got any idea?

  • Did you manage to figure this out? I see similar issues when launch a node group in private subnet.

Xun
已提問 7 個月前檢視次數 716 次
1 個回答
0

Hello.

  1. Please check if your nat gateway has a public IP an configured in a public subnet.
  2. Ensure that DNS resolution and DNS hostnames are enabled for your VPC.
  3. Check if your security groups are allowing traffic between the EKS control plane and worker nodes.

Regards, Andrii

profile picture
專家
已回答 7 個月前
  • Thanks, Andrii. All three are checked. However, the problem still persists.

    1. Yes
    $ aws ec2 describe-nat-gateways --nat-gateway-ids <my-nat-gateway-id> --query 'NatGateways[].NatGatewayAddresses[].PublicIp'
    [
        "<correct-public-ip>"
    ]
    
    1. Yes
    $ aws ec2 describe-vpc-attribute --vpc-id <my-vpc-id> --attribute enableDnsSupport 
    {
        "VpcId": "<my-vpc-id>",
        "EnableDnsSupport": {
            "Value": true
        }
    }
    
    $ aws ec2 describe-vpc-attribute --vpc-id <my-vpc-id> --attribute enableDnsHostnames
    {
        "VpcId": "<my-vpc-id>",
        "EnableDnsHostnames": {
            "Value": true
        }
    }
    
    
    1. Yes, the security group of the the autoscaling group associated with the node group has both inbound and outbound allowing 0.0.0.0/0 all protocol, all port range, all type.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南