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

Unlock this course with a free trial

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

Configuring LimitRange

Configuring LimitRange

- In this video, I'll show you how to work with limitrange. It's a simple demo, but yet it's on the slide for you for your convenience. So, let's start with kubectl explain on limitrange.spec, so that you can get an impression of what it's all about. Wow, that's not very exciting. Let's open the limits, and there you can see the different objects that apply. The default, the default requests, the max, the max limit requests, the minimum, as well as the type, which is the type of the resource that this limit applies to. Let's demonstrate how to use all of this. So let's do a kubectl create ns limited to create the namespace that we are going to use for this demo. Next, there is a limitrange.yaml file. It's a pretty simple limitrange, but hey, it doesn't have to be any fancy. So what do we see? We see the limitrange resource being defined, and it sets a default memory, 512 megabyte, default request of 256 megabytes on the…

Contents