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

The definition file is shown in the vi editor in Figure 12-21.

Figure 12-21. ResourceQuota definition file with scope BestEffort

We shall use the quota in a separate namespace. Create a namespace called best-effort.

./kubectl create namespace best-effort

Create the ResourceQuota from the definition file as shown in Figure 12-22.

./kubectl create -f best-effort-quotas.yaml --namespace=best-effort

List the quota and describe it:

./kubectl get quota --namespace=best-effort

./kubectl describe quota best-effort-quotas --namespace=best-effort

295

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

Saved successfully!

Ooh no, something went wrong!