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.
Configuring resource limits and requests - Kubernetes Tutorial
From the course: Certified Kubernetes Administrator (CKA) Cert Prep (2024)
Configuring resource limits and requests
- In this video, I'll demonstrate how to work with resource limits and requests. For your convenience, the steps of the demo are right here on the slide. So to start with, I'm using "kubectl create quota". This "create quota" has pretty good help, "-h" in many cases, as you know, is showing how to use it. And a command like this is really convenient if you know how to find it, on the exam. And I am going to use "kubectl create quota qtest --hard", "pods" is "3", "cpu" is "100m", "memory" is "500mi --namespace limited". Oops. Did we already create namespace limited? We did not, so let me edit this command. Control + A to go to the beginning of the command line and "kubectl create ns limited", followed by "kubectl create quota". There we go. The resource quota is created. So, we can figure it out using "kubectl describe quota" on "-n limited". And there we can see the current setting of the quota. So, let's figure out how it works, "kubectl create deploy nginx", "--image" is "nginx"…
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Learning objectives42s
-
(Locked)
Exploring the scheduling process1m 2s
-
(Locked)
Setting node preferences3m 9s
-
(Locked)
Managing affinity and anti-affinity rules9m 44s
-
(Locked)
Managing taints and tolerations8m 29s
-
(Locked)
Understanding LimitRange and quota1m 12s
-
(Locked)
Configuring resource limits and requests5m 16s
-
(Locked)
Configuring LimitRange3m 21s
-
(Locked)
Lesson 8 lab: Configuring taints36s
-
(Locked)
Lesson 8 lab solution: Configuring taints4m 42s
-
(Locked)
-
-
-
-
-
-