I'm trying to access my existing RDS instance in the newly created EKS cluster. steps I have followed:
- Create a VPC peering connection by keeping RDS as requester and EKS as accepter.
- Add destination Accepter CIDRs with the peering connection. in RDS route table. with Requester CIDRs in EKS route table.
- Trying to add the EKS security group in the RDS security groups inbound rules. but it's not showing in the dropdown while adding.
- Added CIDR instead of the EKS
after all this step I'm trying to access the instance:
> kubectl run -i --tty --rm debug --image=busybox --restart=Never -- sh
/ # nc bh.cvcmxxxxxxnouu.us-west-2.rds.amazonaws.com 3306
^Cpunt!
Note:
- In the VPC peering connection, all ClassicLink shows disabled.
- I have also enabled DNS resolution && DNS hostnames for RDS and EKS vpc.
Goal: able to access RDS instance inside EKS cluster.
any idea what I'm doing wrong?