19.06.2021 Views

148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 12 ■ Using Resource Quotas

Figure 12-12. ResourceQuota definition file for object quotas

Create the ResourceQuota from the definition file in the default namespace as shown in Figure 12-13.

./kubectl create -f object-quotas.yaml --namespace=default

Then list and describe the quota:

./kubectl get quota --namespace=default

./kubectl describe quota object-quotas --namespace=default

The resource quota is created and listed as shown in Figure 12-13. The quota description includes the

Used resources and Hard limits.

Figure 12-13. Creating, listing, and describing the resource quota for object quotas

289

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!