Five teams share one EKS cluster and finance wants cost per team. How do you set up showback?
IntermediateScenarioCost
Answer
Situation read → The AWS bill shows nodes, not teams. You need to split node cost by what each team's pods requested.
What I'd do →
- Standardise ownership: one namespace per team (or a required
teamlabel), enforced by Kyverno. - Run OpenCost or Kubecost to allocate node cost by requested CPU and memory (the greater of request or usage).
- Turn on split cost allocation data for EKS in the AWS Billing console, so the CUR reports cost per pod and namespace.
- Tag shared AWS resources (RDS, S3, queues) with
teamand activate it as a cost allocation tag. - Send each team a monthly report with their idle share (requested but unused), which is usually the eye-opener.
Why → Visibility changes behaviour; teams right-size once they see their own number.
Interview tip → Mention that allocation is by requests, which is why inflated requests show up as cost.
More on Cost
The AWS bill jumped 40% this month and finance wants an explanation by tomorrow. How do you find out why?BeginnerThe "NAT Gateway – data processed" line is $9,000 a month. How do you bring it down?IntermediateCut EKS compute cost by 40% without hurting reliability. What's your plan?AdvancedDev and test environments run 24/7 but are used only during office hours. How do you cut that cost?BeginnerCloudWatch Logs costs more than the EC2 fleet. What do you do?IntermediateFinance asks you to buy commitments. Savings Plans or Reserved Instances, and how much?Intermediate