New-CnsKubernetesEntityReference Command | Vmware PowerCLI Reference

New-CnsKubernetesEntityReference

This cmdlet creates a Cloud Native Storage (CNS) Kubernetes entity reference at the client side.

Syntax

New-CnsKubernetesEntityReference
-EntityName < String >
-EntityType < CnsKubernetesEntityType >
[-KubernetesClusterId < String > ]
[-Namespace < String > ]
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
EntityName String named
Specifies the name of the entity.
required
EntityType CnsKubernetesEntityType named
Specifies the type of the entity.
optional KubernetesClusterId String named
Specifies the Kubernetes cluster to which the entity belongs.
optional Namespace String named
Specifies the namespace in Kubernetes to which the entity belongs, if applicable. You must not set the namespace for an entity of type persistent volume. You must set it for entities of type persistent volume claim and POD.
optional ProgressAction ActionPreference named

Output

VMware.VimAutomation.Storage.Types.V1.Vsan.Cns.CnsKubernetesEntityReference

Examples

Example 1

New-CnsKubernetesEntityReference -EntityName 'myVolumePVC' -EntityType PersistentVolumeClaim

Creates a CNS Kubernetes entity reference with 'myVolumePVC' as an entity name and PersistentVolumeClaim as an entity type.

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 creates a Cloud Native Storage (CNS) volume.

This cmdlet removes the specified Cloud Native Storage (CNS) volumes.

This cmdlet modifies the Cloud Native Storage (CNS) volume metadata of a specified CNS volume.

CnsVolumeAttachment

New-CnsVolumeAttachment -CnsVolume <CnsVolume> -VM <VirtualMachine> [-Server <VIServer[]>] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>]

Remove-CnsVolumeAttachment -CnsVolume <CnsVolume> -VM <VirtualMachine> [-Server <VIServer[]>] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>]

CnsVolumeMetadata

This cmdlet creates a Cloud Native Storage (CNS) volume metadata at the client side.