Controlling resource consumption using LimitRanges

This is another way of control resource allocation in OpenShift at the project level, but unlike ResourceQuotas, they are different in certain ways:

  • They are applied to individual pods, containers, images, or image streams
  • They don't control some resources such as secrets, ConfigMaps, ResourceQuotas, services, and ReplicationControllers
  • They can be created from a raw definition only

Depending on the type of resource they are applied to, LimitRanges control various computing resources and objects:

Resource type

Computing resources/attributes controlled


  • CPU
  • RAM


  • CPU
  • RAM


Size of an image pushed into an internal registry


  • Number ...

Get Learn OpenShift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.