---
title: "API Reference — wasmCloud Kubernetes Operator | wasmCloud"
description: "Full API reference for the wasmCloud Kubernetes operator — every Custom Resource Definition, field, and configuration option used to run Wasm workloads."
canonical: "https://wasmcloud.com/docs/kubernetes-operator/api-reference/"
---

Version: v2

# API Reference

## Packages

- [runtime.wasmcloud.dev/v1alpha1](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#runtimewasmclouddevv1alpha1)

## runtime.wasmcloud.dev/v1alpha1

Package v1alpha1 contains API Schema definitions for the runtime v1alpha1 API group.

### Resource Types

- [Artifact](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#artifact)
- [ArtifactList](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#artifactlist)
- [Host](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#host)
- [HostList](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#hostlist)
- [Workload](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workload)
- [WorkloadDaemonSet](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddaemonset)
- [WorkloadDaemonSetList](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddaemonsetlist)
- [WorkloadDeployment](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeployment)
- [WorkloadDeploymentList](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeploymentlist)
- [WorkloadList](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadlist)
- [WorkloadReplicaSet](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadreplicaset)
- [WorkloadReplicaSetList](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadreplicasetlist)

#### Artifact

Artifact is the Schema for the artifacts API.

*Appears in:*

- [ArtifactList](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#artifactlist)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `apiVersion` *string* | `runtime.wasmcloud.dev/v1alpha1` |  |  |
| `kind` *string* | `Artifact` |  |  |
| `metadata` *[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#objectmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |  |  |
| `spec` *[ArtifactSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#artifactspec)* |  |  |  |

#### ArtifactList

ArtifactList contains a list of Artifact.

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `apiVersion` *string* | `runtime.wasmcloud.dev/v1alpha1` |  |  |
| `kind` *string* | `ArtifactList` |  |  |
| `metadata` *[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#listmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |  |  |
| `items` *[Artifact](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#artifact) array* |  |  |  |

#### ArtifactSpec

ArtifactSpec defines the desired state of Artifact.

*Appears in:*

- [Artifact](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#artifact)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `image` *string* |  |  | Required: {} |
| `imagePullSecret` *[LocalObjectReference](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#localobjectreference-v1-core)* |  |  | Optional: {} |

#### ConfigLayer

*Appears in:*

- [HostInterface](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#hostinterface)
- [LocalResources](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#localresources)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `configFrom` *[LocalObjectReference](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#localobjectreference-v1-core) array* | ConfigFrom is a list of references to ConfigMaps that will be provided to the workload.<br>The keys and values of all referenced ConfigMaps will be merged. In case of key conflicts,<br>the last ConfigMap in the list wins. |  | Optional: {} |
| `secretFrom` *[LocalObjectReference](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#localobjectreference-v1-core) array* | The keys and values of all referenced Secrets will be merged. In case of key conflicts,<br>the last Secret in the list wins.<br>The values of the Secrets will be base64-decoded, utf-8 decoded before being provided to the workload. |  | Optional: {} |
| `config` *object (keys:string, values:string)* |  |  | Optional: {} |

#### EphemeralVolume

EphemeralVolume represents a temporary directory that shares a workload's lifetime.

*Appears in:*

- [Volume](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#volume)

#### Host

Host is the Schema for the Hosts API.

*Appears in:*

- [HostList](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#hostlist)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `apiVersion` *string* | `runtime.wasmcloud.dev/v1alpha1` |  |  |
| `kind` *string* | `Host` |  |  |
| `metadata` *[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#objectmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |  |  |
| `hostId` *string* |  |  | Required: {} |
| `hostname` *string* |  |  | Optional: {} |
| `httpPort` *integer* |  |  | Optional: {} |
| `environment` *string* | Environment records where the host is running. For Kubernetes host<br>pods this is the pod's namespace; for out-of-cluster hosts it can be<br>any operator-defined identifier (e.g. a region or data center). |  | Optional: {} |

#### HostInterface

*Appears in:*

- [WorkloadSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadspec)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `configFrom` *[LocalObjectReference](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#localobjectreference-v1-core) array* | ConfigFrom is a list of references to ConfigMaps that will be provided to the workload.<br>The keys and values of all referenced ConfigMaps will be merged. In case of key conflicts,<br>the last ConfigMap in the list wins. |  | Optional: {} |
| `secretFrom` *[LocalObjectReference](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#localobjectreference-v1-core) array* | The keys and values of all referenced Secrets will be merged. In case of key conflicts,<br>the last Secret in the list wins.<br>The values of the Secrets will be base64-decoded, utf-8 decoded before being provided to the workload. |  | Optional: {} |
| `config` *object (keys:string, values:string)* |  |  | Optional: {} |
| `name` *string* | Name uniquely identifies this interface instance when multiple entries<br>share the same namespace+package. It is the `(implements <name>)` id the<br>host uses to route a component's named import to this interface's backend,<br>so two imports of the same namespace:package can resolve to different<br>backends.<br>Required when multiple entries of the same namespace:package exist.<br>A name declared here takes precedence over a component of the same<br>name in the same Workload: the host serves the label, and the<br>component's export is not linked for it. |  | Optional: {}<br>Pattern: `^[a-z0-9][a-z0-9-]*$` |
| `namespace` *string* |  |  | Required: {} |
| `package` *string* |  |  | Required: {} |
| `interfaces` *string array* |  |  | MinItems: 1<br>Required: {} |
| `version` *string* |  |  | Optional: {} |

#### HostList

HostList contains a list of Host.

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `apiVersion` *string* | `runtime.wasmcloud.dev/v1alpha1` |  |  |
| `kind` *string* | `HostList` |  |  |
| `metadata` *[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#listmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |  |  |
| `items` *[Host](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#host) array* |  |  |  |

#### HostPathVolume

HostPathVolume represents a pre-existing file or directory on the host machine.

*Appears in:*

- [Volume](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#volume)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `path` *string* | Path of the file or directory on the host. |  | Required: {} |

#### KubernetesServiceRef

KubernetesServiceRef references an existing Kubernetes Service that the operator will manage an EndpointSlice for, pointing to the host pods that are running this workload.

*Appears in:*

- [KubernetesSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#kubernetesspec)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `name` *string* | Name is the name of the Kubernetes Service in the same namespace. |  | Required: {} |

#### KubernetesSpec

KubernetesSpec groups Kubernetes-specific configuration for a workload.

*Appears in:*

- [WorkloadDaemonSetSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddaemonsetspec)
- [WorkloadDeploymentSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeploymentspec)
- [WorkloadSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadspec)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `service` *[KubernetesServiceRef](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#kubernetesserviceref)* | Service references an existing Kubernetes Service that the operator will<br>maintain an EndpointSlice for, pointing to the host pods running this<br>workload. When set, the operator also registers DNS aliases for the<br>service (e.g. service-name, service-name.namespace.svc.cluster.local)<br>with the host so cluster-internal callers can reach the workload via<br>Service DNS without going through an external gateway. |  | Optional: {} |

#### LocalResources

LocalResources describes resources that will be made available to a workload component.

*Appears in:*

- [WorkloadComponent](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadcomponent)
- [WorkloadService](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadservice)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `volumeMounts` *[VolumeMount](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#volumemount) array* | VolumeMounts is a list of volume mounts that will be mounted into the workload component.<br>The volumes must be defined in the WorkloadSpec.Volumes field. |  | Optional: {} |
| `environment` *[ConfigLayer](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#configlayer)* |  |  | Optional: {} |
| `config` *object (keys:string, values:string)* |  |  | Optional: {} |
| `allowedHosts` *string array* |  |  | Optional: {} |
| `allowedIpNameLookups` *string array* |  |  | Optional: {} |
| `allowedHostLoopbackPorts` *string array* |  |  | Optional: {} |

#### ReplicaSetStatus

*Appears in:*

- WorkloadDeploymentStatus
- WorkloadReplicaSetStatus

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `expected` *integer* |  |  | Optional: {} |
| `current` *integer* |  |  | Optional: {} |
| `ready` *integer* |  |  | Optional: {} |
| `unavailable` *integer* |  |  | Optional: {} |

#### Volume

Volume represents a named volume that can be mounted by components.

*Appears in:*

- [WorkloadSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadspec)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `name` *string* | Name of the volume. Must be a DNS_LABEL and unique within the Workload. |  | Required: {} |
| `ephemeral` *[EphemeralVolume](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#ephemeralvolume)* | EphemeralVolume represents a temporary directory that shares a workload's lifetime. |  | Optional: {} |
| `hostPath` *[HostPathVolume](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#hostpathvolume)* | HostPathVolume represents a pre-existing file or directory on the host machine. |  | Optional: {} |

#### VolumeMount

VolumeMount describes a mounting of a Volume within a component.

*Appears in:*

- [LocalResources](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#localresources)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `name` *string* | Name must match the Name of a Volume defined in the WorkloadSpec.Volumes field. |  | Required: {} |
| `mountPath` *string* | MountPath is the path within the component where the volume should be mounted. |  | Required: {} |
| `readOnly` *boolean* | ReadOnly indicates whether the volume should be mounted as read-only. |  | Optional: {} |

#### Workload

Workload is the Schema for the artifacts API.

*Appears in:*

- [WorkloadList](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadlist)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `apiVersion` *string* | `runtime.wasmcloud.dev/v1alpha1` |  |  |
| `kind` *string* | `Workload` |  |  |
| `metadata` *[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#objectmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |  |  |
| `spec` *[WorkloadSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadspec)* |  |  |  |

#### WorkloadComponent

WorkloadComponent represents a component of a workload. Components are stateless, invocation-driven units of computation. Components are isolated from each other and can be scaled independently. Each Component has a Root WIT World, representing the Components imports/exports. The combined list of all Components' Root WIT Worlds within a workload must be compatible with the Host's WIT World. All components within a workload are guaranteed to be placed on the same Wasm Host.

*Appears in:*

- [WorkloadSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadspec)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `name` *string* |  |  | Required: {} |
| `image` *string* |  |  | Required: {} |
| `imagePullSecret` *[LocalObjectReference](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#localobjectreference-v1-core)* |  |  | Optional: {} |
| `imagePullPolicy` *[PullPolicy](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#pullpolicy-v1-core)* |  |  | Optional: {} |
| `poolSize` *integer* |  |  | Optional: {} |
| `maxInvocations` *integer* |  |  | Optional: {} |
| `maxConcurrency` *integer* |  |  | Optional: {} |
| `reclaimWindowSeconds` *integer* |  |  | Optional: {} |
| `reclaimMinInstances` *integer* |  |  | Optional: {} |
| `localResources` *[LocalResources](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#localresources)* |  |  | Optional: {} |

#### WorkloadDeployPolicy

*Underlying type:* *string*

*Appears in:*

- [WorkloadDaemonSetSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddaemonsetspec)
- [WorkloadDeploymentSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeploymentspec)

| Field | Description |
| --- | --- |
| `RollingUpdate` |  |
| `Recreate` |  |

#### WorkloadDaemonSet

WorkloadDaemonSet runs a Workload on every Host that matches its host selector, spec.replicasPerHost instances per Host, and follows the Host set as it changes. Since 2.12.0.

*Appears in:*

- [WorkloadDaemonSetList](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddaemonsetlist)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `apiVersion` *string* | `runtime.wasmcloud.dev/v1alpha1` |  |  |
| `kind` *string* | `WorkloadDaemonSet` |  |  |
| `metadata` *[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#objectmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |  |  |
| `spec` *[WorkloadDaemonSetSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddaemonsetspec)* |  |  |  |

#### WorkloadDaemonSetList

WorkloadDaemonSetList contains a list of WorkloadDaemonSet.

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `apiVersion` *string* | `runtime.wasmcloud.dev/v1alpha1` |  |  |
| `kind` *string* | `WorkloadDaemonSetList` |  |  |
| `metadata` *[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#listmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |  |  |
| `items` *[WorkloadDaemonSet](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddaemonset) array* |  |  |  |

#### WorkloadDaemonSetSpec

WorkloadDaemonSetSpec defines the desired state of WorkloadDaemonSet.

*Appears in:*

- [WorkloadDaemonSet](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddaemonset)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `replicasPerHost` *integer* | ReplicasPerHost is the number of Workload instances to run on each Host<br>that matches template.spec.hostSelector. Unlike WorkloadDeployment's<br>replicas, it is not a total. | 1 | Minimum: 0<br>Optional: {} |
| `template` *[WorkloadReplicaTemplate](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadreplicatemplate)* |  |  | Required: {} |
| `deployPolicy` *[WorkloadDeployPolicy](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeploypolicy)* | DeployPolicy is how a template change reaches the hosts. RollingUpdate<br>starts the new instances on a host before stopping the old ones there,<br>MaxConcurrentHosts hosts at a time. Recreate stops every old instance at once. | RollingUpdate | Enum: \[RollingUpdate Recreate\]<br>Optional: {} |
| `maxConcurrentHosts` *integer* | MaxConcurrentHosts is how many hosts a RollingUpdate updates at once. | 1 | Minimum: 1<br>Optional: {} |
| `artifacts` *[WorkloadDeploymentArtifact](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeploymentartifact) array* |  |  | Optional: {} |
| `kubernetes` *[KubernetesSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#kubernetesspec)* | Kubernetes groups Kubernetes-specific configuration such as Service<br>references and endpoint management. |  | Optional: {} |

#### WorkloadDeployment

WorkloadDeployment is the Schema for the artifacts API.

*Appears in:*

- [WorkloadDeploymentList](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeploymentlist)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `apiVersion` *string* | `runtime.wasmcloud.dev/v1alpha1` |  |  |
| `kind` *string* | `WorkloadDeployment` |  |  |
| `metadata` *[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#objectmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |  |  |
| `spec` *[WorkloadDeploymentSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeploymentspec)* |  |  |  |

#### WorkloadDeploymentArtifact

*Appears in:*

- [WorkloadDaemonSetSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddaemonsetspec)
- [WorkloadDeploymentSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeploymentspec)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `name` *string* |  |  | Required: {} |
| `artifactFrom` *[LocalObjectReference](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#localobjectreference-v1-core)* |  |  | Required: {} |

#### WorkloadDeploymentList

WorkloadDeploymentList contains a list of HttpTrigger.

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `apiVersion` *string* | `runtime.wasmcloud.dev/v1alpha1` |  |  |
| `kind` *string* | `WorkloadDeploymentList` |  |  |
| `metadata` *[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#listmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |  |  |
| `items` *[WorkloadDeployment](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeployment) array* |  |  |  |

#### WorkloadDeploymentSpec

WorkloadDeploymentSpec defines the desired state of WorkloadDeployment.

*Appears in:*

- [WorkloadDeployment](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeployment)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `replicas` *integer* |  |  | Optional: {} |
| `template` *[WorkloadReplicaTemplate](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadreplicatemplate)* |  |  | Required: {} |
| `deployPolicy` *[WorkloadDeployPolicy](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeploypolicy)* |  | RollingUpdate | Optional: {} |
| `artifacts` *[WorkloadDeploymentArtifact](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeploymentartifact) array* |  |  | Optional: {} |
| `kubernetes` *[KubernetesSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#kubernetesspec)* | Kubernetes groups Kubernetes-specific configuration such as Service<br>references and endpoint management. |  | Optional: {} |

#### WorkloadList

WorkloadList contains a list of Workload.

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `apiVersion` *string* | `runtime.wasmcloud.dev/v1alpha1` |  |  |
| `kind` *string* | `WorkloadList` |  |  |
| `metadata` *[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#listmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |  |  |
| `items` *[Workload](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workload) array* |  |  |  |

#### WorkloadReplicaSet

WorkloadReplicaSet is the Schema for the artifacts API.

*Appears in:*

- [WorkloadReplicaSetList](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadreplicasetlist)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `apiVersion` *string* | `runtime.wasmcloud.dev/v1alpha1` |  |  |
| `kind` *string* | `WorkloadReplicaSet` |  |  |
| `metadata` *[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#objectmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |  |  |
| `spec` *[WorkloadReplicaSetSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadreplicasetspec)* |  |  |  |

#### WorkloadReplicaSetList

WorkloadReplicaSetList contains a list of WorkloadReplicaSet.

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `apiVersion` *string* | `runtime.wasmcloud.dev/v1alpha1` |  |  |
| `kind` *string* | `WorkloadReplicaSetList` |  |  |
| `metadata` *[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#listmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |  |  |
| `items` *[WorkloadReplicaSet](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadreplicaset) array* |  |  |  |

#### WorkloadReplicaSetSpec

WorkloadReplicaSetSpec defines the desired state of WorkloadReplicaSet.

*Appears in:*

- [WorkloadDeploymentSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeploymentspec)
- [WorkloadReplicaSet](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadreplicaset)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `replicas` *integer* |  |  | Optional: {} |
| `template` *[WorkloadReplicaTemplate](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadreplicatemplate)* |  |  | Required: {} |

#### WorkloadReplicaTemplate

*Appears in:*

- [WorkloadDaemonSetSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddaemonsetspec)
- [WorkloadDeploymentSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloaddeploymentspec)
- [WorkloadReplicaSetSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadreplicasetspec)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `annotations` *object (keys:string, values:string)* |  |  | Optional: {} |
| `labels` *object (keys:string, values:string)* |  |  | Optional: {} |
| `spec` *[WorkloadSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadspec)* |  |  | Required: {} |

#### WorkloadService

WorkloadService represents a long-running service that is part of the workload. It is also sometimes referred to as a "sidecar" and is optional. A Service differs from a Component in that it is long-running and represents the Workload's "localhost". Services can bind to TCP & UDP ports, which are accessible by Components within the same workload via "localhost" or "127.0.0.1". Services export a single WIT interface, shaped as wasi:cli/run. Services can import interfaces from any Component within the same workload, or from the Host.

*Appears in:*

- [WorkloadSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadspec)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `image` *string* |  |  | Required: {} |
| `imagePullSecret` *[LocalObjectReference](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#localobjectreference-v1-core)* |  |  | Optional: {} |
| `imagePullPolicy` *[PullPolicy](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#pullpolicy-v1-core)* |  |  | Optional: {} |
| `maxRestarts` *integer* |  |  | Optional: {} |
| `localResources` *[LocalResources](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#localresources)* |  |  | Optional: {} |

#### WorkloadSpec

WorkloadSpec defines the desired state of Workload.

*Appears in:*

- [Workload](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workload)
- [WorkloadReplicaTemplate](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadreplicatemplate)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `hostSelector` *object (keys:string, values:string)* |  |  | Optional: {} |
| `hostId` *string* |  |  | Optional: {} |
| `environment` *string* | Environment, if set, scopes scheduling to Hosts whose Environment<br>matches this value, regardless of the Workload's own namespace.<br>The value is matched against Host.Environment — typically a<br>Kubernetes namespace for in-cluster host pods, or any<br>operator-defined identifier for out-of-cluster hosts (e.g. a<br>region or data center). Only honored when the operator is started<br>with allowSharedHosts=true, or when Environment equals the<br>Workload's namespace. |  | Optional: {} |
| `components` *[WorkloadComponent](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadcomponent) array* |  |  | Optional: {} |
| `hostInterfaces` *[HostInterface](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#hostinterface) array* |  |  | Optional: {} |
| `service` *[WorkloadService](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#workloadservice)* |  |  | Optional: {} |
| `volumes` *[Volume](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#volume) array* |  |  | Optional: {} |
| `kubernetes` *[KubernetesSpec](https://wasmcloud.com/docs/kubernetes-operator/api-reference/#kubernetesspec)* | Kubernetes groups Kubernetes-specific configuration such as Service<br>references and endpoint management. |  | Optional: {} |

Last updated on **Nov 8, 2026** by **Eric Gregory**
