Karpenter on AKS: Why is my subnet giving "SubnetIsFull" errors when it has 1000+ available IP addresses?

Annabelle Taylor 0 Reputation points
2025-03-12T20:49:15.58+00:00

Hello! I'm trying to run Karpenter to my AKS cluster in order to manage spot instances. I was able to get the service deployed to the cluster, but when I try to opt in a pod to Karpenter management with proper tolerations, I get the following error:

RESPONSE 400: 400 Bad Request
ERROR CODE: SubnetIsFull
--------------------------------------------------------------------------------
{"error": {"code": "SubnetIsFull", "message": "Subnet /subscriptions/
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,307 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Abiola Akinbade 24,090 Reputation points
    2025-03-12T22:12:47.41+00:00

    Hello Annabelle Taylor,

    Thanks for your question

    If your subnet is shared with other resources, the IPs might not be sufficient for AKS node pools. Karpenter might be trying to launch nodes in a wrong/undersized subnet. Can you verify?

    kubectl logs -n karpenter -l app.kubernetes.io/name=karpenter
    
    
    

    Also try the troubleshooting steps here: https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/create-upgrade-delete/error-code-subnetisfull

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    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.