The Workload resource represents a logical grouping of data plane proxies that share the same workload identifier. Kong Mesh creates and manages Workload resources automatically when data plane proxies carry a kuma.io/workload label. On Kubernetes, set the label with a kuma.io/workload annotation on the Pod. On Universal, set the label directly on the Dataplane resource.
Use Workload resources to:
- Monitor connected and healthy data plane proxies per workload.
- Group data plane proxies by workload identifier for observability.
- Integrate with
MeshIdentityto assign identity based on the workload.
Kong Mesh manages
Workloadresources automatically. Do not create them manually. The control plane creates aWorkloadresource when a data plane proxy with akuma.io/workloadlabel is deployed, and deletes it when no data plane proxies reference it.All data plane proxies that reference a
Workloadmust belong to the same mesh. On Kubernetes, Kong Mesh enforces this at the namespace level. A single namespace cannot contain Pods in multiple meshes.If Kong Mesh detects Pods in multiple meshes within the same namespace, it emits a Kubernetes warning event on the namespace and skips
Workloadgeneration for the affected workload. Any existingWorkloadresource remains orphaned rather than being deleted.For details on preventing this configuration issue, see the namespace-mesh constraint documentation.