简体   繁体   中英

How can I fix the IP address an API sees from my AWS Kubernetes pods

I have a Drupal site running on an AWS EKS Kubernetes cluster.

But I need to access a 3rd party API that requires an IP whitelist, however when I run curl ifconfig.io I get different results each day. Is there a way to fix this. My pod's Service domain resolves to 3 IPs however none of these are what a 3rd party sees when I try to access them. Also does anyone know what this IP is called ? Is this the Source IP? Many thanks

I think that a VPC in which your cluster is running needs to have an Internet Gateway with a static Elastic IP attached to it.

See: https://docs.aws.amazon.com/eks/latest/userguide/create-public-private-vpc.html#create-EIP

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM