# Data Object - CnsKubernetesEntityMetadata(vim.cns.KubernetesEntityMetadata)

Extends
  CnsEntityMetadata
See also
  CnsKubernetesEntityReference
Since
  vSAN API vSAN 6.7U3

## Data Object Description

Data object that represents metadata associated with an entity in Kubernetes.
For Kubernetes, CNS caches Kubernetes metadata like labels, persistent volume name, persistent volume claim name, pod name, namespace(if applicable) etc. Labels are captured only for persistent volume and persistent volume claim entities only.
For WORKLOAD cluster flavor, KubernetesEntityMetadata can be mapped to entities in supervisor cluster as follows:
- Namespace in this object will represent the namespace in supervisor cluster.
- PV, PVC names in this object represents the PV and PVC names in supervisor cluster.
- Pod name represents the pod VM name under the specific namespace/workload in supervisor cluster.

Properties

Name | Type | Description
--- | --- | ---
entityType | xsd:string | Represents the type of entity in Kubernetes. See CnsKubernetesEntityType for supported types.
namespace* | xsd:string | Namespace in Kubernetes the entity belongs to, if applicable. Namespace must not be set for entity of type persistent volume and must be set for entities of type persistent volume claim and pod.
referredEntity* | CnsKubernetesEntityReference[] | The Kubernetes entity it is referring to. For example, a PVC refers to a PV, a Pod refers to one or more PVCs etc. If is perfectly fine for an entity to not refer to anything, example, a PV does not refer to a PVC etc. Since vSAN API 7.0
Properties inherited from CnsEntityMetadata
clusterId, delete, entityName, labels
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="CnsKubernetesEntityMetadata"> <complexContent> <extension base="vsan:CnsEntityMetadata"> <sequence> <element name="entityType" type="xsd:string"/> <element name="namespace" type="xsd:string" minOccurs="0"/> <element name="referredEntity" type="vsan:CnsKubernetesEntityReference" minOccurs="0" maxOccurs="unbounded"/> </sequence> </extension> </complexContent> </complexType>