From the course: Certified Kubernetes Administrator (CKA) Cert Prep (2024)

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Understanding LimitRange and quota

Understanding LimitRange and quota

- In this video, we are going to explore LimitRange and Quota. So, what is LimitRange? Well, LimitRange is an API object that limits resource usage per container or pod within a namespace. It uses three relevant options where type specifies whether it applies to pods or containers, defaultRequest is the default resources application that will request, and default is the maximum resource that the application can use. Then there's Quota. Quota is an API object that limits total resources that are available within the namespace. If a namespace is configured with Quota, applications in that namespace must be configured with resource settings in pod.spec.containers.resources. Now, while the goal of the LimitRange is to set default restrictions for each application running in a namespace, the goal of Quota is to define the maximum resources that can be consumed within a namespace by all of the applications. In the next videos, I'll show you how to use both of these.

Contents