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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.