Managed (Tenant) Kubernetes

Learn to deploy and use isolated managed Kubernetes clusters in Cozystack.

Managed Kubernetes in Cozystack

Whenever you want to deploy a custom containerized application in Cozystack, it’s best to deploy it to a managed Kubernetes cluster.

Cozystack deploys and manages Kubernetes-as-a-service as standalone applications within each tenant’s isolated environment. In Cozystack, such clusters are named tenant Kubernetes clusters, while the base Cozystack cluster is called a management or root cluster. Tenant clusters are fully separated from the management cluster and are intended for deploying tenant-specific or customer-developed applications.

Within a tenant cluster, users can take advantage of LoadBalancer services and easily provision physical volumes as needed.
The control-plane operates within containers, while the worker nodes are deployed as virtual machines, all seamlessly managed by the application.

Kubernetes version in tenant clusters is independent of Kubernetes in the management cluster. Users can select the supported patch versions from 1.31 to 1.35.

Why Use a Managed Kubernetes Cluster?

Kubernetes has emerged as the industry standard, providing a unified and accessible API, primarily utilizing YAML for configuration. This means that teams can easily understand and work with Kubernetes, streamlining infrastructure management.

Kubernetes leverages robust software design patterns, enabling continuous recovery in any scenario through the reconciliation method. Additionally, it ensures seamless scaling across a multitude of servers, addressing the challenges posed by complex and outdated APIs found in traditional virtualization platforms. This managed service eliminates the need for developing custom solutions or modifying source code, saving valuable time and effort.

The Managed Kubernetes Service in Cozystack offers a streamlined solution for efficiently managing server workloads.

Starting Work

Once the tenant Kubernetes cluster is ready, you can get a kubeconfig file to work with it. It can be done via UI or a kubectl request:

  • Open the Cozystack dashboard, switch to your tenant, find and open the application page. Copy one of the config files from the Secrets section.

  • Run the following command (using the management cluster kubeconfig):

    kubectl get secret -n tenant-<name> kubernetes-<clusterName>-admin-kubeconfig -o go-template='{{ printf "%s\n" (index .data "admin.conf" | base64decode) }}' > admin.conf
    

There are several kubeconfig options available:

  • admin.conf — The standard kubeconfig for accessing your new cluster. You can create additional Kubernetes users using this configuration.
  • admin.svc — Same token as admin.conf, but with the API server address set to the internal service name. Use it for applications running inside the cluster that need API access.
  • super-admin.conf — Similar to admin.conf, but with extended administrative permissions. Intended for troubleshooting and cluster maintenance tasks.
  • super-admin.svc — Same as super-admin.conf, but pointing to the internal API server address.

Implementation Details

A tenant Kubernetes cluster in Cozystack is essentially Kubernetes-in-Kubernetes. Deploying it involves the following components:

  • Kamaji Control Plane: Kamaji is an open-source project that facilitates the deployment of Kubernetes control planes as pods within a root cluster. Each control plane pod includes essential components like kube-apiserver, controller-manager, and scheduler, allowing for efficient multi-tenancy and resource utilization.

  • Etcd Cluster: A dedicated etcd cluster is deployed using the cozystack etcd-operator (etcd-operator.cozystack.io/v1alpha2). It provides reliable and scalable key-value storage for the Kubernetes control plane.

  • Worker Nodes: Virtual Machines are provisioned to serve as worker nodes using KubeVirt. These nodes are configured to join the tenant Kubernetes cluster, enabling the deployment and management of workloads. Worker node disks automatically detect and match the underlying volume’s block size (blockSize.matchVolume) to ensure compatibility with storage backends that use non-512-byte sectors, such as LINSTOR DRBD with 4Kn drives.

  • Cluster API: Cozystack is using the Kubernetes Cluster API to provision the components of a cluster.

This architecture ensures isolated, scalable, and efficient tenant Kubernetes environments.

See the reference for components utilized in this service:

Breaking Changes

  • ephemeralStorage renamed to diskSize (v1.4): The nodeGroups[name].ephemeralStorage field has been renamed to nodeGroups[name].diskSize. Existing clusters are migrated transparently by platform migration 41 during the pre-upgrade hook — no manual action is required. Newly written values should use diskSize. Existing VMs are rolling-updated via CAPI when the new values are applied. With the Talos worker rollover in this release the field now sizes the single system disk (Talos OS image streamed from factory.talos.dev, kubelet state, containerd image cache, local-path PVCs) — the pre-Talos disk-kubelet PVC layout was removed. State on that single disk persists across same-VM reboots (virt-launcher restart, guest reboot, node failure); VM replacement by CAPI (e.g. nodeGroup field change, MachineHealthCheck remediation) provisions a fresh disk.

  • Air-gapped tenant workers (Phase 1 Talos rollover): tenant worker bootstrap moves from Ubuntu containerDisk + kubeadm to a Talos OS disk image fetched over HTTP by CDI and a .../installer/... installer reference. Both sources are now overridable — set talos.imageFactoryURL (default https://factory.talos.dev) to a self-hosted Image Factory, a caching mirror, or an internal HTTP file server, and talos.installerRepository (default factory.talos.dev/installer) to a mirrored registry. The Helm-rendered *-patch-containerd Secret that previously plumbed the platform-wide registries.mirrors config to tenant workers (via the kubeadm template’s containerd certs.d mount) has no consumer in the Talos machineconfig and was removed in this release; in-guest container-image pulls (pods pulling from registries inside the tenant cluster) still honour no per-tenant registries.mirrors override until Phase 2 restores it via machine.registries.mirrors knobs. So a strict-egress tenant can now mirror the Talos OS image and installer, but rate-limited in-guest registry pulls remain a Phase 2 follow-up — file an issue if you depend on this and it is not yet landed.

  • Worker MachineHealthCheck remediation is now enabled by default (Phase 1 Talos rollover): the worker MHC maxUnhealthy moved from a hard-coded 0 (remediation effectively off) to a configurable nodeHealthCheck.maxUnhealthy defaulting to "50%". CAPI now auto-remediates (deletes and replaces) unhealthy worker Machines while at least 50% of a group stays healthy. "50%" deliberately leaves headroom for transient unhealthy nodes during the kubeadm→Talos rollover and slow first boots from factory.talos.dev; set nodeHealthCheck.maxUnhealthy: "0%" to keep the previous remediation-off behaviour until your fleet is stable on Talos workers.

  • GitOps-managed tenant Kubernetes CRs must bump spec.version in Git (Phase 1 Talos rollover): platform migration 46 patches live kuberneteses.apps.cozystack.io objects from v1.30 to v1.31 (v1.30 left the Talos↔Kubernetes support matrix). When the tenant Kubernetes CR is reconciled from Git (Flux/Argo), the next source reconcile re-applies version: v1.30 over migration 46’s patch, which then trips the chart’s _versions.tpl guard and the HelmRelease fails. Update spec.version to v1.31 (or newer) in your Git source before/with the platform upgrade. Tenants managed via the API or dashboard need no action — migration 46 handles them.

  • Remote-accessible LINSTOR StorageClasses are auto-propagated to tenants (v1.5): infra-cluster LINSTOR StorageClasses whose linstor.csi.linbit.com/allowRemoteVolumeAccess is not "false" are created inside each tenant under the same name (provisioned by csi.kubevirt.io). Upgrade caveat: delete any manually created tenant StorageClass whose name collides with a propagated infra class (e.g. a hand-made replicated) before upgrading, or the propagated class cannot be created and the tenant CSI release will not converge. Infra classes that must stay node-local need allowRemoteVolumeAccess: "false" set explicitly — an absent annotation is treated as remote-accessible. Propagation is evaluated at HelmRelease render time, so classes added or removed on the infra cluster after a tenant exists propagate only on that tenant’s next reconcile.

The top-level storageClass field is annotated as immutable in the chart schema — see docs/storage-immutability.md for the contract and which consumers enforce it. The per-node-group nodeGroups[name].storageClass field is intentionally not annotated immutable: it is optional and undefaulted, so a strict self == oldSelf rule would block any future attempt to set it on an existing node group.

Parameters

Common Parameters

NameDescriptionTypeValue
storageClassDefault StorageClass inside the tenant cluster. Remote-accessible LINSTOR classes are auto-propagated to the tenant under the same name.stringreplicated

Application-specific Parameters

NameDescriptionTypeValue
nodeGroupsWorker nodes configuration map. When left empty, a default node group md0 is emitted with minReplicas: 0 and roles: [ingress-nginx] — the MachineDeployment renders but provisions no workers until an unschedulable Pod triggers the cluster-autoscaler (or an operator scales the group manually). Enabling addons.ingressNginx.enabled: true on a CR with default nodeGroups: {} therefore requires either supplying a nodeGroup with roles: [ingress-nginx] and minReplicas >= 1, or waiting for the autoscaler to bring up the default md0 in response to the ingress-nginx controller Pods becoming Pending. Provide your own groups to take full control — they are not merged with the default, so you may name and omit groups freely.map[string]object{}
nodeGroups[name].minReplicasMinimum number of replicas.int0
nodeGroups[name].maxReplicasMaximum number of replicas.int10
nodeGroups[name].instanceTypeVirtual machine instance type.stringu1.medium
nodeGroups[name].diskSizeSystem disk size for the worker VM. Carries the Talos OS image (factory.talos.dev raw artifact streamed in by CDI), kubelet state, containerd image cache, and any local-path PVCs. Pre-Talos installs used a separate disk-kubelet PVC for kubelet/containerd state; on Talos this is consolidated onto the single system disk imaged from the factory artifact.quantity20Gi
nodeGroups[name].storageClassStorageClass for worker node persistent disks. When empty, falls back to the application-level storageClass. Worker VMs live-migrate, so their disks need ReadWriteMany — the RWX access mode is supplied by the chosen StorageClass’s CDI StorageProfile, not set on the DataVolume here — and linstor-csi rejects RWX volumes that are not on a DRBD-backed StorageClass, so the fallback targets the replicated/DRBD application storageClass rather than a possibly non-DRBD cluster default. NOTE: deliberately not marked immutable — the field is optional and undefaulted, so a strict self == oldSelf rule would block any future attempt to set it on an existing node group.string""
nodeGroups[name].rolesList of node roles.[]string[]
nodeGroups[name].resourcesExplicit CPU and memory for each worker node, as an alternative to instanceType sizing. Optional: when omitted, the node is sized by instanceType. When both cpu and memory are set, they take precedence and instanceType is ignored for that node group (the instancetype is omitted from the VM, since KubeVirt cannot override an instancetype’s CPU/memory). Set both cpu and memory together or neither; setting only one is rejected at render time.object{}
nodeGroups[name].resources.cpuCPU available.quantity""
nodeGroups[name].resources.memoryMemory (RAM) available.quantity""
nodeGroups[name].gpusList of GPUs to attach (NVIDIA driver requires at least 4 GiB RAM).[]object[]
nodeGroups[name].gpus[i].nameName of GPU, such as “nvidia.com/AD102GL_L40S”.string""
nodeGroups[name].kubeletKubelet resource reservations for this node group.object{}
nodeGroups[name].kubelet.systemReservedMemoryMemory reserved for host OS. Auto-computed from instanceType if empty.string""
nodeGroups[name].kubelet.kubeReservedMemoryMemory reserved for kubelet and container runtime. Auto-computed from instanceType if empty.string""
nodeGroups[name].kubelet.systemReservedCpuCPU reserved for host OS. Auto-computed from instanceType if empty.string""
nodeGroups[name].kubelet.kubeReservedCpuCPU reserved for kubelet and container runtime. Auto-computed from instanceType if empty.string""
nodeGroups[name].kubelet.evictionHardMemoryHard eviction threshold for memory (absolute like 200Mi or percentage like 7%).string7%
nodeGroups[name].kubelet.evictionSoftMemorySoft eviction threshold for memory (absolute like 1Gi or percentage like 10%).string10%
nodeGroups[name].maxUnhealthyPer-group override for nodeHealthCheck.maxUnhealthy. When unset, the cluster-wide nodeHealthCheck.maxUnhealthy applies. Accepts a bare integer (“0”, “1”, …) or an integer percentage (“0%”, “50%”).string""
nodeGroups[name].nodeStartupTimeoutPer-group override for nodeHealthCheck.nodeStartupTimeout. When unset, the cluster-wide nodeHealthCheck.nodeStartupTimeout applies.string""
versionKubernetes major.minor version to deploystringv1.35
hostExternal hostname for Kubernetes cluster. Defaults to <cluster-name>.<tenant-host> if empty.string""

Cluster Addons

NameDescriptionTypeValue
addonsCluster addons configuration.object{}
addons.certManagerCert-manager addon.object{}
addons.certManager.enabledEnable cert-manager.boolfalse
addons.certManager.valuesOverrideCustom Helm values overrides.object{}
addons.ciliumCilium CNI plugin.object{}
addons.cilium.valuesOverrideCustom Helm values overrides.object{}
addons.gatewayAPIGateway API addon.object{}
addons.gatewayAPI.enabledEnable Gateway API.boolfalse
addons.ingressNginxIngress-NGINX controller.object{}
addons.ingressNginx.enabledEnable the controller (requires nodes labeled ingress-nginx).boolfalse
addons.ingressNginx.exposeMethodMethod to expose the controller. Allowed values: Proxied, LoadBalancer.stringProxied
addons.ingressNginx.hostsDomains routed to this tenant cluster when exposeMethod is Proxied.[]string[]
addons.ingressNginx.valuesOverrideCustom Helm values overrides.object{}
addons.gpuOperatorNVIDIA GPU Operator.object{}
addons.gpuOperator.enabledEnable GPU Operator.boolfalse
addons.gpuOperator.valuesOverrideCustom Helm values overrides.object{}
addons.hamiHAMi GPU virtualization middleware.object{}
addons.hami.enabledEnable HAMi (requires GPU Operator).boolfalse
addons.hami.valuesOverrideCustom Helm values overrides.object{}
addons.fluxcdFluxCD GitOps operator.object{}
addons.fluxcd.enabledEnable FluxCD.boolfalse
addons.fluxcd.valuesOverrideCustom Helm values overrides.object{}
addons.monitoringAgentsMonitoring agents.object{}
addons.monitoringAgents.enabledEnable monitoring agents.boolfalse
addons.monitoringAgents.valuesOverrideCustom Helm values overrides.object{}
addons.verticalPodAutoscalerVertical Pod Autoscaler.object{}
addons.verticalPodAutoscaler.valuesOverrideCustom Helm values overrides.object{}
addons.veleroVelero backup/restore addon.object{}
addons.velero.enabledEnable Velero.boolfalse
addons.velero.valuesOverrideCustom Helm values overrides.object{}
addons.corednsCoreDNS addon.object{}
addons.coredns.valuesOverrideCustom Helm values overrides.object{}
addons.ouroborosHairpin-NAT fix for ingress-nginx with PROXY-protocol.object{}
addons.ouroboros.enabledEnable ouroboros. Requires addons.ingressNginx.enabled (chart-render fail otherwise). Only useful when PROXY-protocol is wired on the tenant ingress-nginx via valuesOverride.boolfalse
addons.ouroboros.valuesOverrideCustom Helm values overrides. Operator-key wins over cozystack defaults.object{}

Kubernetes Control Plane Configuration

NameDescriptionTypeValue
controlPlaneKubernetes control-plane configuration.object{}
controlPlane.replicasNumber of control-plane replicas.int2
controlPlane.apiServerAPI Server configuration.object{}
controlPlane.apiServer.resourcesCPU and memory resources for API Server.object{}
controlPlane.apiServer.resources.cpuCPU available.quantity""
controlPlane.apiServer.resources.memoryMemory (RAM) available.quantity""
controlPlane.apiServer.resourcesPresetPreset if resources omitted.stringc1.medium
controlPlane.apiServer.extraArgsExtra command-line flags appended to the tenant kube-apiserver, passed through to KamajiControlPlane spec.apiServer.extraArgs. For OIDC use spec.oidc.mode — this passthrough is the escape hatch for other apiserver flags (--requestheader-uid-headers=X-Remote-Uid, feature gates, etc). Do NOT add legacy --oidc-* flags here when spec.oidc.mode is not None; the chart injects --authentication-config and the apiserver refuses to boot with both. Empty by default (no change to current behavior).[]string[]
controlPlane.apiServer.extraVolumesExtra volumes added to the control-plane Deployment, passed through to KamajiControlPlane spec.deployment.extraVolumes. Use to mount a ConfigMap or Secret holding an AuthenticationConfiguration file referenced by extraArgs. Each item is a core/v1 Volume, but because the control-plane pod runs on the management cluster only configMap and secret sources are allowed (host-reaching sources like hostPath/csi and token-projection via projected are rejected); each volume must have a unique, non-empty name and exactly one source. The names talos-ca and talos-tls-cert are reserved by the chart. Empty by default.[]object[]
controlPlane.apiServer.extraVolumeMountsExtra volume mounts added to the tenant kube-apiserver container, passed through to KamajiControlPlane spec.apiServer.extraVolumeMounts. Each name must reference a volume declared in extraVolumes; the chart-managed talos secret volumes cannot be mounted. Each item is a core/v1 VolumeMount. Empty by default.[]object[]
controlPlane.controllerManagerController Manager configuration.object{}
controlPlane.controllerManager.resourcesCPU and memory resources for Controller Manager.object{}
controlPlane.controllerManager.resources.cpuCPU available.quantity""
controlPlane.controllerManager.resources.memoryMemory (RAM) available.quantity""
controlPlane.controllerManager.resourcesPresetPreset if resources omitted.stringt1.micro
controlPlane.schedulerScheduler configuration.object{}
controlPlane.scheduler.resourcesCPU and memory resources for Scheduler.object{}
controlPlane.scheduler.resources.cpuCPU available.quantity""
controlPlane.scheduler.resources.memoryMemory (RAM) available.quantity""
controlPlane.scheduler.resourcesPresetPreset if resources omitted.stringt1.micro
controlPlane.konnectivityKonnectivity configuration.object{}
controlPlane.konnectivity.serverKonnectivity Server configuration.object{}
controlPlane.konnectivity.server.resourcesCPU and memory resources for Konnectivity.object{}
controlPlane.konnectivity.server.resources.cpuCPU available.quantity""
controlPlane.konnectivity.server.resources.memoryMemory (RAM) available.quantity""
controlPlane.konnectivity.server.resourcesPresetPreset if resources omitted.stringt1.micro
imagesOptional image overrides for air-gapped or rate-limited registries.object{}
images.waitForKubeconfigImage used by the wait-for-kubeconfig init container. Empty falls back to images/busybox.tag.string""
images.kubectlImage used by the bootstrap-token tenant Job (kubectl). Empty falls back to images/kubectl.tag.string""
images.talosCsrSignerImage used by the talos-csr-signer sidecar in the Kamaji control plane. Empty falls back to images/talos-csr-signer.tag.string""

Talos Worker Image

NameDescriptionTypeValue
talosTalos worker image configuration.object{}
talos.versionTalos release used for worker OS image and installer. Must satisfy the chart’s Talos<->Kubernetes support matrix against the chosen version.stringv1.13.6
talos.schematicIDTalos image-factory schematic ID. Defaults to the cozystack-tested vanilla schematic. Operators using custom schematics (system extensions, kernel args) override here.stringce4c980550dd2ab1b17bbf2b08801c7eb59418eafe8f279833297925d67c7515
talos.imageFactoryURLBase URL of the Talos Image Factory that serves the worker OS disk image (the openstack-amd64.raw.xz raw artifact streamed in by CDI over HTTP). Defaults to the public factory. Point at a self-hosted Image Factory, a caching mirror, or an internal HTTP file server for air-gapped, rate-limited, or flaky-egress environments. No trailing slash.stringhttps://factory.talos.dev
talos.installerRepositoryOCI repository prefix for the Talos installer image used by the in-guest talos-reconcile upgrade Job. Resolved as <installerRepository>/<schematicID>:<version>. Defaults to the public factory’s installer path. Override for air-gapped or mirrored registries. No trailing slash.stringfactory.talos.dev/installer

Node Health Check

NameDescriptionTypeValue
nodeHealthCheckMachineHealthCheck tuning for worker node groups.object{}
nodeHealthCheck.maxUnhealthyMaximum number of unhealthy nodes tolerated per node group before remediation is paused. The MHC admission webhook accepts either a bare integer (“0”, “1”, …) or a percentage (“0%”, “50%”); bare numeric strings are rejected, so the safer default is to express the value as a percentage. Default “50%” leaves headroom for transient unhealthy nodes during the kubeadm-to-Talos rollover and slow first boots from factory.talos.dev. Drop to “0%” once the fleet is stable on Talos workers.string50%
nodeHealthCheck.nodeStartupTimeoutMaximum time a Machine is allowed to spend reaching the Ready condition before it is remediated. Raise for slow first boots (Talos image fetch from factory.talos.dev or a busy storage class on the kubevirt-csi PVC populator).string10m

OIDC

NameDescriptionTypeValue
oidcOIDC authentication and per-user RBAC for the tenant kube-apiserver. See docs/oidc-tenant.md for the operator guide.object{}
oidc.modeIdentity mode. None: no OIDC, only the static admin kubeconfig works. System: trust the platform cozy realm via a per-cluster public client with audience binding; zero-config default. CustomConfig: trust a tenant-supplied issuer directly (BYO); cozy is not in the path.stringNone
oidc.customConfigTenant-supplied AuthenticationConfiguration; consumed only when mode: CustomConfig.object{}
oidc.customConfig.configInline AuthenticationConfiguration YAML (apiserver.config.k8s.io/v1beta1). The chart writes the value verbatim into a Secret mounted at /etc/kubernetes/authentication-config/config.yaml on the kube-apiserver. Mutually exclusive with secretRef.name.string""
oidc.customConfig.secretRefReference to an existing Secret in the tenant namespace carrying the AuthenticationConfiguration.object{}
oidc.customConfig.secretRef.nameName of an existing Secret in the tenant (release) namespace whose config.yaml key holds an apiserver.config.k8s.io/v1beta1 AuthenticationConfiguration. Mutually exclusive with customConfig.config.string""
oidc.usersUsers granted access to the tenant cluster; each entry produces one ClusterRoleBinding inside the tenant cluster. Works for both System and CustomConfig modes.[]object[]
oidc.users[i].emailEmail address matched against the email claim from the issuer. Used verbatim as the User: subject in the ClusterRoleBinding inside the tenant cluster. The email claim is a built-in OIDC scope requested explicitly by the chart-generated kubectl oidc-login kubeconfig; every conformant OIDC provider (cozy realm included) emits it.string""
oidc.users[i].roleRole to bind: admin maps to ClusterRole/cluster-admin, view maps to ClusterRole/view.string{}

Parameter examples and reference

resources and resourcesPreset

resources sets explicit CPU and memory configurations for each replica. When left empty, the preset defined in resourcesPreset is applied.

resources:
  cpu: 4000m
  memory: 4Gi

resourcesPreset sets named CPU and memory configurations for each replica. This setting is ignored if the corresponding resources value is set.

Preset nameCPUmemory
nano250m128Mi
micro500m256Mi
small1512Mi
medium11Gi
large22Gi
xlarge44Gi
2xlarge88Gi

instanceType Resources

The following instanceType resources are provided by Cozystack:

NamevCPUsMemory
cx1.2xlarge816Gi
cx1.2xlarge1gi816Gi
cx1.4xlarge1632Gi
cx1.4xlarge1gi1632Gi
cx1.8xlarge3264Gi
cx1.8xlarge1gi3264Gi
cx1.large24Gi
cx1.large1gi24Gi
cx1.medium12Gi
cx1.medium1gi12Gi
cx1.xlarge48Gi
cx1.xlarge1gi48Gi
d1.2xlarge832Gi
d1.2xmedium24Gi
d1.4xlarge1664Gi
d1.8xlarge32128Gi
d1.large28Gi
d1.medium14Gi
d1.micro11Gi
d1.nano1512Mi
d1.small12Gi
d1.xlarge416Gi
gn1.2xlarge832Gi
gn1.4xlarge1664Gi
gn1.8xlarge32128Gi
gn1.xlarge416Gi
m1.2xlarge864Gi
m1.2xlarge1gi864Gi
m1.4xlarge16128Gi
m1.4xlarge1gi16128Gi
m1.8xlarge32256Gi
m1.8xlarge1gi32256Gi
m1.large216Gi
m1.large1gi216Gi
m1.xlarge432Gi
m1.xlarge1gi432Gi
n1.2xlarge1632Gi
n1.4xlarge3264Gi
n1.8xlarge64128Gi
n1.large48Gi
n1.medium44Gi
n1.xlarge816Gi
o1.2xlarge832Gi
o1.4xlarge1664Gi
o1.8xlarge32128Gi
o1.large28Gi
o1.medium14Gi
o1.micro11Gi
o1.nano1512Mi
o1.small12Gi
o1.xlarge416Gi
rt1.2xlarge832Gi
rt1.4xlarge1664Gi
rt1.8xlarge32128Gi
rt1.large28Gi
rt1.medium14Gi
rt1.micro11Gi
rt1.small12Gi
rt1.xlarge416Gi
u1.2xlarge832Gi
u1.2xmedium24Gi
u1.4xlarge1664Gi
u1.8xlarge32128Gi
u1.large28Gi
u1.medium14Gi
u1.micro11Gi
u1.nano1512Mi
u1.small12Gi
u1.xlarge416Gi

Kubelet Resource Reservations

Each node group supports a kubelet object that configures how much memory and CPU the kubelet reserves for the host OS and the Kubernetes/system components running on the worker node.

When systemReservedMemory or kubeReservedMemory are left empty, they are auto-computed using the following formula:

  1. Determine the effective memory of the node:
    • If resources.memory is explicitly set, use that value.
    • Otherwise, look up the instanceType and use its memory.guest value.
    • If neither is available, the reservation falls back to the minimum (256Mi).
  2. Calculate 5% of the effective memory (in MiB, rounded down).
  3. Clamp the result to the range [256Mi, 1Gi]:
    • Nodes with 5 GiB or less get the minimum 256Mi reservation.
    • Nodes with 20 GiB or more get the maximum 1Gi reservation.

Both systemReservedMemory and kubeReservedMemory receive the same auto-computed value by default.

CPU reservations (systemReservedCpu, kubeReservedCpu) follow the same pattern: 5% of effective CPU, clamped to [50m, 500m]. Both are auto-computed when left empty.

Kubelet Defaults

ParameterDefaultDescription
systemReservedMemoryauto-computedMemory reserved for host OS
kubeReservedMemoryauto-computedMemory reserved for kubelet and container runtime
systemReservedCpuauto-computedCPU reserved for host OS
kubeReservedCpuauto-computedCPU reserved for kubelet and container runtime
evictionHardMemory7%Hard eviction threshold for memory
evictionSoftMemory10%Soft eviction threshold for memory
evictionSoftGracePeriod1m30s (hardcoded)Duration a soft eviction threshold must be breached before triggering eviction
evictionMinimumReclaim256Mi (hardcoded)Minimum amount of memory reclaimed per eviction action

Eviction thresholds can be specified as percentages (e.g., 7%) or absolute values (e.g., 200Mi). Both thresholds must use the same unit type. The hard threshold must be strictly less than the soft threshold.

The evictionSoftGracePeriod and evictionMinimumReclaim parameters are currently hardcoded in the chart template and cannot be overridden through values.

Capacity Annotation

When kubelet resource reservations are configured, both the capacity.cluster-autoscaler.kubernetes.io/memory and capacity.cluster-autoscaler.kubernetes.io/cpu annotations on MachineDeployments report allocatable values instead of total node resources. Memory allocatable subtracts system-reserved, kube-reserved, and eviction-hard. CPU allocatable subtracts system-reserved and kube-reserved. This aligns the annotations with the values the cluster autoscaler uses in its scaling calculations.

Upgrading from a version without this feature may cause the autoscaler to see reduced per-node capacity after the annotations are updated, which can trigger additional scale-up operations. No action is typically required — the new values reflect the actual memory available for workload scheduling.

Note: When neither resources.memory nor instanceType is set, eviction thresholds (default 7% hard / 10% soft) are still enforced by the kubelet at runtime, but the capacity annotation is not rendered. Without this annotation, the cluster-autoscaler has no visibility into these reservations and may over-schedule the node until evictions fire.

Example: Override kubelet reservations

nodeGroups:
  md0:
    instanceType: "u1.large"
    kubelet:
      systemReservedMemory: "256Mi"
      kubeReservedMemory: "256Mi"
      evictionHardMemory: "500Mi"
      evictionSoftMemory: "1Gi"

U Series: Universal

The U Series is quite neutral and provides resources for general purpose applications.

U is the abbreviation for “Universal”, hinting at the universal attitude towards workloads.

VMs of instance types will share physical CPU cores on a time-slice basis with other VMs.

U Series Characteristics

Specific characteristics of this series are:

  • Burstable CPU performance - The workload has a baseline compute performance but is permitted to burst beyond this baseline, if excess compute resources are available.
  • vCPU-To-Memory Ratio (1:4) - A vCPU-to-Memory ratio of 1:4, for less noise per node.

O Series: Overcommitted

The O Series is based on the U Series, with the only difference being that memory is overcommitted.

O is the abbreviation for “Overcommitted”.

O Series Characteristics

Specific characteristics of this series are:

  • Burstable CPU performance - The workload has a baseline compute performance but is permitted to burst beyond this baseline, if excess compute resources are available.
  • Overcommitted Memory - Memory is over-committed in order to achieve a higher workload density.
  • vCPU-To-Memory Ratio (1:4) - A vCPU-to-Memory ratio of 1:4, for less noise per node.

CX Series: Compute Exclusive

The CX Series provides exclusive compute resources for compute intensive applications.

CX is the abbreviation of “Compute Exclusive”.

The exclusive resources are given to the compute threads of the VM. In order to ensure this, some additional cores (depending on the number of disks and NICs) will be requested to offload the IO threading from cores dedicated to the workload. In addition, in this series, the NUMA topology of the used cores is provided to the VM.

CX Series Characteristics

Specific characteristics of this series are:

  • Hugepages - Hugepages are used in order to improve memory performance.
  • Dedicated CPU - Physical cores are exclusively assigned to every vCPU in order to provide fixed and high compute guarantees to the workload.
  • Isolated emulator threads - Hypervisor emulator threads are isolated from the vCPUs in order to reduce emaulation related impact on the workload.
  • vNUMA - Physical NUMA topology is reflected in the guest in order to optimize guest sided cache utilization.
  • vCPU-To-Memory Ratio (1:2) - A vCPU-to-Memory ratio of 1:2.

M Series: Memory

The M Series provides resources for memory intensive applications.

M is the abbreviation of “Memory”.

M Series Characteristics

Specific characteristics of this series are:

  • Hugepages - Hugepages are used in order to improve memory performance.
  • Burstable CPU performance - The workload has a baseline compute performance but is permitted to burst beyond this baseline, if excess compute resources are available.
  • vCPU-To-Memory Ratio (1:8) - A vCPU-to-Memory ratio of 1:8, for much less noise per node.

RT Series: RealTime

The RT Series provides resources for realtime applications, like Oslat.

RT is the abbreviation for “realtime”.

This series of instance types requires nodes capable of running realtime applications.

RT Series Characteristics

Specific characteristics of this series are:

  • Hugepages - Hugepages are used in order to improve memory performance.
  • Dedicated CPU - Physical cores are exclusively assigned to every vCPU in order to provide fixed and high compute guarantees to the workload.
  • Isolated emulator threads - Hypervisor emulator threads are isolated from the vCPUs in order to reduce emaulation related impact on the workload.
  • vCPU-To-Memory Ratio (1:4) - A vCPU-to-Memory ratio of 1:4 starting from the medium size.

GPU Sharing with HAMi

Enable fractional GPU sharing in tenant Kubernetes clusters using HAMi.

Backups with the Velero addon

Enable the Velero addon in a tenant Kubernetes cluster, point it at a SeaweedFS bucket, and back up and restore workloads.

How to relocate etcd replicas in tenant clusters

Learn how to relocate replicas of tenant etcd clusters, which are used by tenant Kubernetes clusters.