CnsKubernetesEntityReference

CnsKubernetesEntityReference
CnsKubernetesEntityReference

Data object that represents a Kubernetes entity reference both within the Kubernetes cluster and across nested clusters.

Example for within Kubernetes cluster - A PVC referring a PV within the same kubernetes cluster. Example for across nested cluster - A PVC in supervisor cluster used by a PV in guest cluster.

This structure may be used only with operations rendered under /vsan.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "entityType": "string",
    "entityName": "string",
    "namespace": "string",
    "clusterId": "string"
}
string
entityType
Required

Represents the type of entity in Kubernetes.

See CnsKubernetesEntityTypeEnum for supported types.

string
entityName
Required

Represents the name of entity.

string
namespace
Optional

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.

string
clusterId
Optional

Represents the Kubernetes cluster the entity belongs to.

If unset, the server will interpret that this referred entity is in the same Kubernetes cluster as the entityType.

The clusterId should be one of the cluster in containerClusterArray