Configure maximum pods per work node of VKS cluster
search cancel

Configure maximum pods per work node of VKS cluster

book

Article ID: 424451

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

The default maximum pods per work node of VKS cluster is 110. The article talks about how to configure the maximum number. 

Environment

VMware vSphere Kubernetes Service

Resolution

The configuration of maximum pods is supported in VKS 3.5.0. 

  1. Upgrade VKS service to 3.5.0. See release notes of vSphere Kubernetes Service 3.5.0+v1.34
  2. Add the following parameters to VKS cluster yaml:
      topology:
            class: builtin-generic-v3.5.0
        version: <vkr-version>

        variables:
          - name: kubernetes
            value:
              kubeletConfiguration:
                maxPods: <maximum-pods-per-node>

    Note: the maxPods is 20-110

  3. Apply the VKS cluster and verify the pods capacity after login the VKS cluster:

    kubectl get nodes -o custom-columns=NAME:.metadata.name,Capacity:.status.capacity.pods,Allocatable:.status.allocatable.pods