You can configure limitations for pods running in the vSphere Namespace as well as limitations for various Kubernetes objects. The limitations that you configure for an object depend on the specifics of your applications and the way you want them to consume resources within a vSphere Namespace.

Prerequisites

  • Verify that you have the Modify namespace configuration privilege on the Supervisor Cluster.

Procedure

  1. From the vSphere Client home menu, select Workload Management.
  2. Select the namespace to which you want to apply object or container restrictions.
  3. To set container limitations, select Resource Limits and click Edit.
    Option Description
    CPU Requests Set the amount of CPU requests for containers.
    CPU Limit Set the amount of CPU that containers can use.
    Memory Requests Set the amount of memory requests for containers.
    Memory Limits Sent the amount of memory containers can use.
  4. To set limitations on Kubernetes objects that can exist it the namespace, select Object Limits and click Edit.
    Option Description
    Pods The number of vSphere Pod that can run in the namespace.
    Deployments The number of deployments that can run in the namespace.
    Jobs The number of jobs that can run in the namespace.
    DaemonSets The number of daemon sets that can run in the namespace.
    ReplicaSets The number of replica sets in the namespace.
    ReplicationControllers The number of replication controllers that can run in the namespace.
    StatefulSets The number of StatefulSets that can run in the namespace.
    ConfigMaps The number of ConfigMaps that can run in the namespace.
    Secrets The number of secrets that can run in the namespace.
    Persistent Volume Claims The persistent volume claims that can exists in the namespace.
    Services The services that can exists in the namespace.