High network bandwidth usage by eks fargate

0

We have an EKS cluster and we are deploying cronjobs using fargate. The cronjobs runs every 15 minutes. My NAT gateway costs skyrocketed because every 15 minutes it was an amount of 1GB BytesOutToSource. Previously we had this cronjobs running in EC2 instances and never used this amount of internet. What could be causing this? For example, I would think that downloading the image from ECR has no costs (They are even in the same region)

ignacio
已提問 5 個月前檢視次數 246 次
1 個回答
0
已接受的答案

Hello.

If you are using Fargate, pulling the container image in ECR will require communication to the NAT Gateway, which should increase costs.
The blog below is for ECS, but I believe the same situation will occur even for EKS.
https://andrew-larse514.medium.com/aws-nat-gateway-ecr-cost-gotcha-a0865d0edd4
https://pierreraffa.medium.com/cost-reduction-using-ecr-vpc-endpoints-ff87316f36a8

profile picture
專家
已回答 5 個月前
profile picture
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南