How can I improve cost efficiency of Azure Kubernetes?

2024-11-20T09:27:50.7333333+00:00

I am creating a suite of online services. To better control database usage and scalability, I selected AKS as the platform to host my various services. This includes database pods, API pods, Blazor app pods, Keycloak, and more.

At the moment, my app is in its development infancy. I have no users and just a few pods. I created what I believed to be a lightweight node pool in AKS, but the VMs behind the scenes are costing me close to CA$1,000 per month. That's untenable. What is an optimal configuration of AKS to minimize costs while still being performant and scalable? Is AKS even the right tool?

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,165 questions
{count} votes

1 answer

Sort by: Most helpful
  1. David Singh 0 Reputation points
    2024-11-20T10:33:38.1633333+00:00

    You can do following 1. Use smaller VMs like B-series or spot VMs for cost savings.

    1. Enable Cluster Autoscaler and Horizontal Pod Autoscaler.
    2. Separate workloads into optimized, independent node pools.
    3. Set resource requests and limits to avoid overprovisioning.
    4. Use Reserved Instances or Savings Plans for predictable workloads.
    5. Monitor resources with Azure Monitor or tools like Kubecost.
    6. Use Azure Dev/Test subscription for discounts.
    7. Pause or shut down unused node pools during development.
    8. Consider alternatives like Azure App Service or Container Apps
    9. Regularly review costs with Azure Cost Management tools.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.