// Module included in the following assemblies: // // * nodes/nodes-cluster-overcommit.adoc // * post_installation_configuration/node-tasks.adoc :_mod-docs-content-type: PROCEDURE [id="nodes-cluster-overcommit-project-disable_{context}"] = Disabling overcommitment for a project [role="_abstract"] ifndef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] If overcommitment is enabled on a project, you can disable overcommitment for that projects. This allows infrastructure components to be configured independently of overcommitment. endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] ifdef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] 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_. endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] ifdef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] .Prerequisites * You are logged in to the cluster using an account with cluster administrator or cluster editor permissions. endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] .Procedure //For OCP and Origin: ifndef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] . Create or edit the namespace object file. . Add the following annotation: endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] //For ROSA, ROSA-HCP, OSD: ifdef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] . 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*. ifndef::openshift-rosa,openshift-rosa-hcp[] .. If you are using the {oc-first}: ... Edit the namespace: + [source,terminal] ---- $ oc edit namespace/ ---- endif::openshift-rosa,openshift-rosa-hcp[] ifdef::openshift-rosa,openshift-rosa-hcp[] .. If you are using the ROSA CLI (`rosa`): ... Edit the namespace: + [source,terminal] ---- $ rosa edit namespace/ ---- endif::openshift-rosa,openshift-rosa-hcp[] ... Add the following annotation: endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] + [source,yaml] ---- apiVersion: v1 kind: Namespace metadata: annotations: quota.openshift.io/cluster-resource-override-enabled: "false" # ... ---- where: + -- `metadata.annotations.quota.openshift.io/cluster-resource-override-enabled.false`:: Specifies that overcommit is disabled for this namespace. --