Set-WMNamespaceLimits
Changes the Kubernetes resource limits of a namespace. If you want to remove a limit, specify $null to the respective parameter.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
NamespaceLimits | WMNamespaceLimits[] | named |
|
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 | ProgressAction | ActionPreference | named |
|
|
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.WMNamespaceLimitsExamples
Example 1
Get-WMNamespaceLimits -Namespace "dev" | Set-WMNamespaceLimits -CpuLimitMhz 2000
Sets the CPU usage limit of the "dev" namespace to 2000 Mhz.
Example 2
Get-WMNamespaceLimits -Namespace "dev" | Set-WMNamespaceLimits -CpuLimitMhz $null
Removes the CPU usage limit of the "dev" namespace.
Related Commands
WMNamespace
This cmdlet retrieves the workload namespaces in the vCenter Server system.
This cmdlet creates a new workload namespace on the specified cluster.
This cmdlet deletes a workload namespace from the vCenter Server system.
This cmdlet modifies the configuration of a workload namespace.
WMNamespaceLimits
Retrieves information about the Kubernetes resource limits of a namespace.
Changes the Kubernetes resource limits of a namespace.
WMNamespaceNetworkSpec
Creates a specification for a namespace network. The specification is later used to create the actual namespace network.
WMNamespacePermission
Retrieves information about workload namespace access permissions.
Grants an access permission to a workload namespace.
Removes an access permission to a workload namespace.
Modifies an access permission to a workload namespace.
WMNamespaceStoragePolicy
This cmdlet retrieves the configuration of the storage claimed by a workload namespace.
This cmdlet creates a storage claim for a workload namespace using the specified configuration.
This cmdlet deletes the storage claim for a workload namespace associated with a specified storage policy.
This cmdlet modifies the configuration of a storage claim used by a workload namespace.