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

marco.cirilli
from marco.cirilli More from this publisher
19.06.2021 Views

Chapter 12 ■ Using Resource QuotasTo demonstrate that hard limits cannot be exceeded, scale the RC to 20 replicas:./kubectl scale rc mysql-rc --replicas=20Now describe the compute-resources-quota. The Used column still has 10 in the pods row, as shown inFigure 12-9.Figure 12-9. Pods not exceeding the hard limit even though scaled to do so286

Chapter 12 ■ Using Resource QuotasDescribe the RC, and you’ll see that Replicas are listed as 10 current / 20 desired, as shown in Figure 12-10.Figure 12-10. Describing the replication controller: 10 current replicas instead of the 20 desired287

Chapter 12 ■ Using Resource Quotas

To demonstrate that hard limits cannot be exceeded, scale the RC to 20 replicas:

./kubectl scale rc mysql-rc --replicas=20

Now describe the compute-resources-quota. The Used column still has 10 in the pods row, as shown in

Figure 12-9.

Figure 12-9. Pods not exceeding the hard limit even though scaled to do so

286

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

Saved successfully!

Ooh no, something went wrong!