$ rosa edit namespace/<project_name>
In an overcommitted state, the sum of the container compute resource requests and limits exceeds the resources available on the system. For example, you might want to use overcommitment in development environments where a trade-off of guaranteed performance for capacity is acceptable.
Containers can specify compute resource requests and limits. Requests are used for scheduling your container and provide a minimum service guarantee. Limits constrain the amount of compute resource that can be consumed on your node.
The scheduler attempts to optimize the compute resource use across all nodes in your cluster. It places pods onto specific nodes, taking the pods' compute resource requests and nodes' available capacity into consideration.
Red Hat OpenShift service on AWS administrators can manage container density on nodes by configuring pod placement behavior and per-project resource limits that overcommit cannot exceed.
Alternatively, administrators can disable project-level resource overcommitment on customer-created namespaces that are not managed by Red Hat.
For more information about container resource management, see Additional resources.
In Red Hat OpenShift service on AWS, overcommitment of project-level resources is enabled by default. If required by your use case, you can disable overcommitment on projects that are not managed by Red Hat.
For the list of projects that are managed by Red Hat and cannot be modified, see "Red Hat Managed resources" in Support.
If required by your use case, you can disable overcommitment on any project that is not managed by Red Hat. For a list of projects that cannot be modified, see "Red Hat Managed resources" in Support.
You are logged in to the cluster using an account with cluster administrator or cluster editor permissions.
Edit the namespace object file:
If you are using the web console:
Click Administration → Namespaces and click the namespace for the project.
In the Annotations section, click the Edit button.
Click Add more and enter a new annotation that uses a Key of quota.openshift.io/cluster-resource-override-enabled
and a Value of false
.
Click Save.
If you are using the ROSA CLI (rosa
):
Edit the namespace:
$ rosa edit namespace/<project_name>
Add the following annotation:
apiVersion: v1
kind: Namespace
metadata:
annotations:
quota.openshift.io/cluster-resource-override-enabled: "false" (1)
# ...
1 | Setting this annotation to false disables overcommit for this namespace. |