Static outgoing IP in Kubernetes
问题 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? 回答1: 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: gcloud compute addresses create {{ EXT_ADDRESS_NAME }} --region {{ REGION }} Then, I suppose that your pod is assigned to your default-pool node cluster.