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

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Setting namespace quota

Setting namespace quota

- So in this video I will run a demo. In the demo you can see how to manage quota. So we are going to create a quota on the namespace. And then we are going to run a deployment, and we will see that without resource requests and limits set on the deployment it won't run. So we will do some troubleshooting to verify that and then we run it again the right way. Let's go ahead and do it. So I'm starting with kubectl create ns limited. The slide didn't mention it, but we are applying the quota to the namespace. So the namespace must exist. And then kubectl create quota. And before I'm doing my thing, let's do minus h by bless so that you can see that in fact there is an amazing example available. Copy, paste the example, don't forget minus n for the namespace and you should be good. So now let me create a quota that I want to create. I want to create a quota, calling it qtest minus, minus, hard. I always want my quota to be hard, otherwise it's confusing and you never know what exactly is…

Contents