Skip to content

Can't access RDS from pods in EKS

0

I have 2 VPCs, one for my EKS cluster and another for the RDS. I have established a VPC peering between them, but I still receive errors from my application "connection timed out on port 5432". It's the same application from my previous EKS cluster that was in the same VPC as the RDS at it worked, so it must be a problem with my peering.

I have followed these docs in the same region. I have created the peering and accepted the request, then updated the routing table as documented and finally added the security group of my EKS to the RDS one.

What else should I be doing?

2 Answers
2
Accepted Answer

I have referenced the CIDR instead of a security group and it worked.

answered 2 years ago
EXPERT
reviewed 2 years ago
AWS
EXPERT
reviewed 2 years ago
0

Your applications are running on EKS Nodes. Make sure RDS Security Group allows incoming traffic from EKS Nodes (IPs or SG IDs)

If you have more advanced configurations, as Security Group for Pods, allow RDS incoming traffic from Pod's SG https://docs.aws.amazon.com/eks/latest/userguide/security-groups-for-pods.html

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
  • I have allowed incoming traffic from EKS using the SG ID. I'm not sure about the sg for pods tho, I have created the cluster using a basic Terraform setup Does it matter who is the requester and who is the accepter?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.