Set-WMNamespaceLimits

Changes the Kubernetes resource limits of a namespace. If you want to remove a limit, specify $null to the respective parameter.

Syntax

-NamespaceLimits  <WMNamespaceLimits[]>
[-ConfigMaps  <Int64>]
[-CpuLimitMhz  <Int64>]
[-DaemonSets  <Int64>]
[-DefaultCpuLimitMhz  <Int64>]
[-DefaultCpuRequestMhz  <Int64>]
[-DefaultMemoryLimitMiB  <Int64>]
[-DefaultMemoryRequestMhz  <Int64>]
[-Deployments  <Int64>]
[-Jobs  <Int64>]
[-MemoryLimitMiB  <Int64>]
[-PersistentVolumeClaims  <Int64>]
[-Pods  <Int64>]
[-ReplicaSets  <Int64>]
[-ReplicationControllers  <Int64>]
[-Secrets  <Int64>]
[-Services  <Int64>]
[-StatefulSets  <Int64>]
[-StorageLimitMiB  <Int64>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
NamespaceLimits
WMNamespaceLimits[] named
  • pipeline
  • Specifies the namespace limits object that you want to change.
    optional
    ConfigMaps
    Int64 named Sets or removes the maximum number of configuration maps for the namespace.
    optional
    CpuLimitMhz
    Int64 named Sets or removes the maximum CPU resource for the namespace.
    optional
    DaemonSets
    Int64 named Sets or removes the maximum number of daemon sets for the namespace.
    optional
    DefaultCpuLimitMhz
    Int64 named Sets or removes the default CPU limit for a namespace. The default CPU limit is assigned to all new containers in that namespace, in case no CPU limit is explicitly specified.
    optional
    DefaultCpuRequestMhz
    Int64 named Sets or removes the default CPU request for a namespace. The default CPU request is assigned to all new containers in that namespace, in case no CPU request is explicitly specified.
    optional
    DefaultMemoryLimitMiB
    Int64 named Sets or removes the default memory limit for the namespace. The default memory limit is assigned to all new containers in that namespace, in case no memory limit is explicitly specified.
    optional
    DefaultMemoryRequestMhz
    Int64 named Sets or removes the default memory request for the namespace. The default memory request is assigned to all new containers in that namespace, in case no memory request is explicitly specified.
    optional
    Deployments
    Int64 named Sets or removes the maximum number of deployments in the namespace.
    optional
    Jobs
    Int64 named Sets or removes the maximum number of jobs in the namespace.
    optional
    MemoryLimitMiB
    Int64 named Sets or removes the maximum memory resource for the namespace.
    optional
    PersistentVolumeClaims
    Int64 named Sets or removes the maximum number of persistent volume claims in the namespace.
    optional
    Pods
    Int64 named Sets or removes the maximum number of pods in the namespace.
    optional
    ReplicaSets
    Int64 named Sets or removes the maximum number of replica sets in the namespace.
    optional
    ReplicationControllers
    Int64 named Sets or removes the maximum number of replication controllers in the namespace.
    optional
    Secrets
    Int64 named Sets or removes the maximum number of secrets in the namespace.
    optional
    Services
    Int64 named Sets or removes the maximum number of services in the namespace.
    optional
    StatefulSets
    Int64 named Sets or removes the maximum number of stateful sets in the namespace.
    optional
    StorageLimitMiB
    Int64 named Sets or removes the maximum storage resource for the namespace.

    Output

    VMware.VimAutomation.WorkloadManagement.Types.V1.WMNamespaceLimits

    Examples


    Example 1

    PS C:\> Get-WMNamespaceLimits -Namespace "dev" | Set-WMNamespaceLimits -CpuLimitMhz 2000

    Sets the CPU usage limit of the "dev" namespace to 2000 Mhz.

    Example 2

    PS C:\> Get-WMNamespaceLimits -Namespace "dev" | Set-WMNamespaceLimits -CpuLimitMhz $null

    Removes the CPU usage limit of the "dev" namespace.

    Related Commands

    Feedback

    Was this page helpful?