简体   繁体   中英

Communication between EKS node and EKS Fargate pod

I have an EKS cluster, where a code is ran as service 24/7 on the node. Now if i create a fargate profile on the same cluster, can the pods deployed by the Fargate profile communicate with the EKS service node which is running on the same cluster? As the pods does makes calls to that service for data.

Thanks

As far as you have same cluster and all node/pod/service under same VPC, any pod deployed on Fargate will be able to communicate with any other pod/node that is deployed on node group.

You can use FQDN of service name to communicate with other pod deployed on another namespace.

FQDN (fully qualified domain name) of any service is

<service-name>.<namespace-name>.svc.cluster.local

You can read more about DNS of pod and service from here https://kube.netes.io/docs/concepts/services.networking/dns-pod-service/

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