Azure Kubernetes Service cost analysis: Is now available in Preview

Finally, we have an easy add-on that we can enable on our AKS clusters to get a breakdown of costs between the different namespaces and more. This can be viewed through cost analysis.

Before proceeding, make sure that your cluster is not on the free tier. It needs to be Standard or Premium.

Below is the code to update your cluster with the cost analysis add-on. If you want the full documentation and instructions on how to enable the add-on when creating the cluster, click here.

Updating AKS cluster with cost analysis add-on

View Kubernetes costs (Preview)

You can view your Kubernetes costs in two different ways through the Cost Analysis on the subscription or Cost Management page.

There's no need for me to write any instructions as Microsoft has great documentation around this.

Alexander Arana Escobedo

Author

February 01, 2024

Alexander Arana Escobedo

Cloud Architecture & DevOps Advocator