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)

1 Answer
0
Accepted Answer

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
EXPERT
answered 4 months ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions