Can we enable swap memory for k8s node

Shuhaib Muzammil 0 Reputation points
2023-10-27T11:38:17.0266667+00:00

I have a worker node pool with 2 node count of size B2s. Currently RAM memory is saturated and due to quota limit and budget constraints I couldn't scale both verticaly and horizontaly. Is it possible to enable swap memory for a specific node?

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,114 questions
{count} votes

2 answers

Sort by: Most helpful
  1. shiva patpi 13,251 Reputation points Microsoft Employee
    2023-10-27T19:56:29.47+00:00

    @Shuhaib Muzammil

    It is not possible to enable swap memory for a specific node. AKS is a managed offering that will not have direct control over the specific Virtual Machines in the AKS Node Pool !

    Couple of suggestions:

    Your subscription might have got some minimum amount of Compute Quota per region per SKU. You can try to add a new Node Pool with new SKU.

    Regards,

    Shiva.

    0 comments No comments

  2. Shuhaib Muzammil 0 Reputation points
    2024-03-20T10:00:35.4433333+00:00

    To create node pool with custom configuration for Azure Kubernetes Service refer this documentation:

    https://learn.microsoft.com/en-us/azure/aks/custom-node-configuration?tabs=linux-node-pools


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.