Skip to content

Worker Nodes ​

Kubernetes Worker Nodes in KKP are managed by the Kubermatic machine-controller and operating-system-manager, and are represented on the cluster by a MachineDeployment resource.

Machine Deployments (Node Pools) ​

Multi-AZ Worker Node Distribution ​

An ESC Kubernetes Service environment commonly spans three availability zones (for example zhh, olt, zoi). See regions for details.

To achieve high availability and resilience, worker nodes must be distributed across multiple AZs by creating separate MachineDeployments per zone.

⚠️ Important!

During initial cluster creation, only one MachineDeployment can be configured (in a single AZ). After the cluster is created, the user should add additional MachineDeployments for the remaining availability zones.

Users should create at least one MachineDeployment per AZ, each selecting a different subnet/zone and matching storage-class. For example:

MachineDeploymentStorage ClassSubnetZone
workers-zhhsan-infra-standard-zhhsubnet in ZHHzhh
workers-oltsan-infra-standard-oltsubnet in OLTolt
workers-zoisan-infra-standard-zoisubnet in ZOIzoi
workers-bewsan-infra-standard-bewsubnet in BEWbew

This ensures that:

  • Pod scheduling can spread workloads across failure domains using topologySpreadConstraints or pod anti-affinity. By default pods are spread by kubernetes.io/hostname and topology.kubernetes.io/zone
  • A single AZ outage does not take down the entire cluster
  • Zone-specific storage classes can be aligned with node placement

Example: Adding a second MachineDeployment after cluster creation ​

  1. Navigate to your cluster in the KKP Dashboard.
  2. Click "Add Machine Deployment".
  3. Select a subnet in the target AZ (e.g. a ZOI subnet).
  4. Ensure the storage class location matches if you plan to use zone-specific volumes.
  5. Set the desired replica count and save.

Repeat for each additional AZ.

💡 Note

Each MachineDeployment is pinned to a single AZ by its subnet and storage-class selection. You cannot mix AZs within one MachineDeployment.

Upgrade Kubelet Version ​

To update the Kubernetes version for nodes within a cluster using the KKP UI, follow these steps:

  1. Navigate to the cluster in the KKP UI.
  2. Access the "Machine Deployments" section.
  3. Click "Edit" on the desired deployment.
  4. Choose a new kubelet version for the Machine Deployment.
    KKP ensures kubelet version compatibility according to the control plane version, preventing invalid combinations from being displayed.
  5. Save the changes.

Machine Deployment Kubelet Version

Kubelet Resource Reservation ​

Setting Kubelet resource reservations for Worker Nodes in a cluster can be done by adding specific annotations to these MachineDeployments.

Example annotations for MachineDeployment ​

yaml
---
apiVersion: cluster.k8s.io/v1alpha1
kind: MachineDeployment
metadata:
  annotations:
    v1.kubelet-config.machine-controller.kubermatic.io/KubeReserved: cpu=500m,memory=1Gi
    v1.kubelet-config.machine-controller.kubermatic.io/SystemReserved: cpu=200m,memory=512Mi
    v1.kubelet-config.machine-controller.kubermatic.io/EvictionHard: memory.available<1Gi,nodefs.available<1Gi,imagefs.available<2Gi

UI configuration ​

If a user wants to set these annotations directly in the UI instead they have to configure them as Machine Deployment Annotations for their Machine Deployment

Machine Deployment Annotations

List of annotations ​

The following annotations are supported:

TypeAnnotation keyExample values
Kube Reservedv1.kubelet-config.machine-controller.kubermatic.io/KubeReservedcpu=500m,memory=1Gi,ephemeral-storage=1Gi
System Reservedv1.kubelet-config.machine-controller.kubermatic.io/SystemReservedcpu=200m,memory=512Mi,ephemeral-storage=1Gi
Eviction Thresholdsv1.kubelet-config.machine-controller.kubermatic.io/EvictionHardmemory.available<1Gi,nodefs.available<1Gi,imagefs.available<2Gi
Max Podsv1.kubelet-config.machine-controller.kubermatic.io/MaxPods"110"