I run a k8s cluster in google cloud (GKE) and a MySQL server in aws (RDS). Pods need to connect to RDS which only allows connections from certain IP. How can I configure outgoing traffic to have a static IP?
相关问题
- Microk8s, MetalLB, ingress-nginx - How to route ex
- How do I change the storage class of existing pers
- Why do Dataflow steps not start?
- How to generate 12 digit unique number in redshift
- Use awslogs with kubernetes 'natively'
相关文章
- k8s 访问Pod 时好时坏
- Right way to deploy Rails + Puma + Postgres app to
- how many objects are returned by aws s3api list-ob
- AWS S3 in rails - how to set the s3_signature_vers
- Passthrough input to output in AWS Step Functions
- Override env values defined in container spec
- How do I create a persistent volume claim with Rea
- I cannot locate production log files on Elastic Be
I made some research and I found a couple of things.
The thing we are looking for is called "egress IPs" or NAT-as-a-Service and they are both not yet available in GKE.
In any case we have two different options:
Hope it helps!
I had the same problem to connect to a sftp server from a Pod. To solve this, first you need to create an external IP address:
Then, I suppose that your pod is assigned to your default-pool node cluster. Extract your default-pool node name:
Erase default external ip of the vm instance:
Add your external static ip created before:
If your Pod is not attached to the default-pool node, don't forget to select it with a nodeSelector: