New-CnsKubernetesEntityMetadata
This cmdlet creates a Cloud Native Storage (CNS) Kubernetes entity metadata at a client side.
Syntax
-EntityName
<String>
-EntityType <CnsKubernetesEntityType>
-KubernetesClusterId <String>
[-CnsKubernetesEntityReference <CnsKubernetesEntityReference[]>]
[-Label <Hashtable>]
[-Namespace <String>]
[CommonParameters]
-EntityType <CnsKubernetesEntityType>
-KubernetesClusterId <String>
[-CnsKubernetesEntityReference <CnsKubernetesEntityReference[]>]
[-Label <Hashtable>]
[-Namespace <String>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
String | named |
|
Specifies the name of the entity. | required |
|
CnsKubernetesEntityType | named |
|
Specifies the type of the entity in Kubernetes. | required |
|
String | named |
|
Specifies the container orchestrator Kubernetes cluster to which the entity belongs. | optional |
|
CnsKubernetesEntityReference[] | named |
|
Specifies the Kubernetes entity to which you want to refer. For example, a persistent volume claim (PVC) refers to a persistent volume (PV), a POD refers to one or more PVCs, and so on. An entity might not refer to anything. For example, a PV does not refer to a PVC, and so on. | optional |
|
Hashtable | named |
|
Specifies the labels for this entity. A maximum of 32 labels are supported for each entity. The label key should be less than 320 bytes and the value should be less than 64 bytes. | optional |
|
String | named |
|
Specifies the namespace in Kubernetes to which the entity belongs. |
Output
VMware.VimAutomation.Storage.Types.V1.Vsan.Cns.CnsEntityMetadata
Examples
Example 1
New-CnsKubernetesEntityMetadata -EntityType Pod -Namespace 'default' -CnsKubernetesEntityReference $refer1 -KubernetesClusterId 'k8_cls_1' -EntityName 'myVolumePod' -Label $label
Creates a CNS Kubernetes entity metadata with POD as an entity type, "default" as a namespace, $refer1 as a CNS Kubernetes entity reference, 'k8_cls_1' as a Cluster ID, 'myVolumePod' as an entity name, and $label as a label.
Related Commands
CnsContainerCluster
This cmdlet creates a vSAN file service IP configuration at the client side.
CnsKubernetesEntityMetadata
This cmdlet creates a Cloud Native Storage (CNS) Kubernetes entity metadata at a client side.
CnsKubernetesEntityReference
This cmdlet creates a Cloud Native Storage (CNS) Kubernetes entity reference at the client side.
CnsVolume
This cmdlet retrieves a Cloud Native Storage (CNS) volume based on the name or ID filter.
This cmdlet modifies the Cloud Native Storage (CNS) volume metadata of a specified CNS volume.
This cmdlet removes the specified Cloud Native Storage (CNS) volumes.
This cmdlet creates a Cloud Native Storage (CNS) volume.
CnsVolumeAttachment
Remove-CnsVolumeAttachment -CnsVolume -VM [-Server ] [-RunAsync] [-WhatIf] [-Confirm] []
New-CnsVolumeAttachment -CnsVolume -VM [-Server ] [-RunAsync] [-WhatIf] [-Confirm] []
CnsVolumeMetadata
This cmdlet creates a Cloud Native Storage (CNS) volume metadata at the client side.