EKS SCAD Support

Understanding the cost of your Kubernetes workloads using EKS SCAD

EKS SCAD Support

📘

Consider Using the CloudZero Agent for Kubernetes

We recommend using the CloudZero Agent for Kubernetes to get the clearest view of your Kubernetes costs. The CloudZero Agent is cloud-agnostic and offers more features, whereas EKS SCAD is more limited.

For users managing Kubernetes workloads in AWS Elastic Kubernetes Service (EKS) on EC2, CloudZero offers integrated support to capture resource usage data using the split cost allocation data (SCAD) feature in AWS. Enabling SCAD allows you to allocate Amazon EC2 costs at the Kubernetes pod level by combining usage data from EKS SCAD with billing data from the associated AWS connection.

For more information about SCAD, see Improve cost visibility of Amazon EKS with AWS Split Cost Allocation Data in the AWS Blog.

Enable SCAD in AWS EKS

To enable CloudZero to integrate with EKS SCAD, you must opt in to SCAD in the AWS Cost Management Console and select one of the following methods of allocation:

  • By resource requests: This method allocates your Amazon EC2 costs by Kubernetes pod CPU and memory resource requests only (not actual usage).
  • By resource requests and actual usage: This method uses Amazon Managed Service for Prometheus (AMP) to allocate your Amazon EC2 costs by Kubernetes pod CPU and memory resource requests or actual usage, whichever is higher. You may incur additional costs for setting up and running AMP, which is a prerequisite.

Prerequisites:

To opt in to SCAD, follow the steps in Enabling split allocation data in the AWS documentation. Ensure you select the appropriate allocation method during setup (either Resource requests or Amazon Managed Service for Prometheus).

View EKS SCAD Data in CloudZero

The EKS SCAD data will be available in CloudZero after the next billing ingest for the associated AWS account. Note that this can take up to 3 days.

After CloudZero has processed your EKS SCAD data, you can view it in CloudZero. For example, the following image shows EKS SCAD cost data with the label key aws:eks:cluster-name and value cz-agent-demo, grouped by Kubernetes namespace:

Viewing EKS SCAD cost data grouped by namespace

Label Support for EKS SCAD Clusters

When you enable EKS SCAD, AWS creates the following cost allocation labels:

  • aws:eks:cluster-name
  • aws:eks:deployment
  • aws:eks:namespace
  • aws:eks:node
  • aws:eks:workload-name
  • aws:eks:workload-type