Add swap configuration to a Kubernetes deployment model

Add swap configuration to a Kubernetes deployment modelΒΆ

If you have swap enabled on the ctl and cmp nodes, configure your Kubernetes model to make kubelet work correctly with swapping.

To add swap configuration to a Kubernetes deployment model:

  1. Open your Git project repository.

  2. In classes/cluster/<cluster-name>/kubernetes/control.yml, add the following snippet:

    ...
    parameters:
      kubernetes:
        master:
          kubelet:
            fail_on_swap: False
    
  3. In classes/cluster/<cluster-name>/kubernetes/compute.yml, add the following snippet:

    ...
    parameters:
      kubernetes:
        pool:
          kubelet:
            fail_on_swap: False
    

Now, proceed with further MCP Kubernetes cluster configuration as required.