'Setting up a connection between my DigitalOcean kubernetes cluster with an Amazon RDS
I am trying to set up a connection between my DigitalOcean kubernetes cluster and the Amazon RDS.
I have created a postgresql DB instance with a VPC. My kubernetes resources are also in a VPC.
So I want my kubernetes nodes to be able to reach out to the Amazon RDS.
Is there a way to set this up?
Thank you for the help!!
Solution 1:[1]
VPC networks provide a more secure connection between resources because the network is inaccessible from the public internet and other VPC networks. Possible solutions: Note: The managed db and k8s cluster must be in the same region in your account (AWS or DO).
- To solve that problem you could move your kubernetes cluster to AWS and add it in the same VPC as your db.
- Or Move your managed db to digital ocean and add it in the same VPC with the k8s cluster.
- Or use a public network instead to connect from k8s do cluster to AWS managed db.
- Look at this article https://www.digitalocean.com/community/questions/communicating-between-two-vpc-in-the-same-region has some answers for your problem.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
