I deployed a EKS Farget cluster in AWS and created a fargate profile with default
namespace without any labels. I found that whenever I deploy a new deployment kubectl apply
, a new fargate node will be created for that deployment. See below screenshot.
How can I make the deployment share one fargate instance?
And how can I rename the fargate node name?
The spirit of using Fargate is that you want a serverless experience where you don't have to think about nodes (they are displayed simply because K8s can't operate without nodes). One of the design tenets of Fargate is that it supports 1 pod per node for increased security. You pay for the size of the pod you deploy (not the node the service provision to run that pod - even if the node > pod). See here for how pod are sized. What is the use case for which you may want/need to run multiple pods per Fargate node? And why do you prefer Fargate over EKS managed node groups (which supports multiple pods per node)?