Share via


WorkloadRuntime Class

public final class WorkloadRuntime
extends ExpandableStringEnum<WorkloadRuntime>

Determines the type of workload a node can run.

Field Summary

Modifier and Type Field and Description
static final WorkloadRuntime KATA_VM_ISOLATION

Nodes can use (Kata + Cloud Hypervisor + Hyper-V) to enable Nested VM-based pods.

static final WorkloadRuntime OCICONTAINER

Nodes will use Kubelet to run standard OCI container workloads.

static final WorkloadRuntime WASM_WASI

Nodes will use Krustlet to run WASM workloads using the WASI provider (Preview).

Constructor Summary

Constructor Description
WorkloadRuntime()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of WorkloadRuntime value.

Method Summary

Modifier and Type Method and Description
static WorkloadRuntime fromString(String name)

Creates or finds a WorkloadRuntime from its string representation.

static Collection<WorkloadRuntime> values()

Gets known WorkloadRuntime values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

KATA_VM_ISOLATION

public static final WorkloadRuntime KATA_VM_ISOLATION

Nodes can use (Kata + Cloud Hypervisor + Hyper-V) to enable Nested VM-based pods. Due to the use Hyper-V, AKS node OS itself is a nested VM (the root OS) of Hyper-V. Thus it can only be used with VM series that support Nested Virtualization such as Dv3 series.

OCICONTAINER

public static final WorkloadRuntime OCICONTAINER

Nodes will use Kubelet to run standard OCI container workloads.

WASM_WASI

public static final WorkloadRuntime WASM_WASI

Nodes will use Krustlet to run WASM workloads using the WASI provider (Preview).

Constructor Details

WorkloadRuntime

@Deprecated
public WorkloadRuntime()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of WorkloadRuntime value.

Method Details

fromString

public static WorkloadRuntime fromString(String name)

Creates or finds a WorkloadRuntime from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding WorkloadRuntime.

values

public static Collection<WorkloadRuntime> values()

Gets known WorkloadRuntime values.

Returns:

known WorkloadRuntime values.

Applies to