19.06.2021 Views

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 12 ■ Using Resource Quotas

Figure 12-4. ResourceQuota definition file

Create the ResourceQuota in the default namespace:

./kubectl create -f compute-resource-quotas.yaml --namespace=default

The ResourceQuota is created as shown in Figure 12-5.

Figure 12-5. Creating a ResourceQuota

List the quotas:

./kubectl get quota --namespace=default

The compute-resource-quotas quota should be listed as shown in Figure 12-6.

Figure 12-6. Listing the quotas in the default namespace

283

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

Saved successfully!

Ooh no, something went wrong!