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 QuotasThe BestEffort scope quota is created, listed, and described as shown in Figure 12-22.Figure 12-22. Creating and describing a ResourceQuota with scope BestEffort in namespace best-effortUsing the same RC definition file mysql.yaml, create an RC and list the three pods as shown inFigure 12-23.Figure 12-23. Creating an RC and listing the pods296

Chapter 12 ■ Using Resource QuotasScale the RC to five pods, which is also the hard limit. The RC is scaled as shown in Figure 12-24.Figure 12-24. Scaling the replicas to the hard limit of 5Scale the RC to six pods, which would exceed the hard limit. The RC is scaled as shown in Figure 12-25.Figure 12-25. Scaling the replicas to exceed the hard limit of 5Describe the RC, and the Replicas value is listed as 6 current / 6 desired, as shown in Figure 12-26. Eventhough the hard limit on the number of pods is exceeded, an extra pod is scheduled because the scope is setto BestEffort.297

Chapter 12 ■ Using Resource Quotas

Scale the RC to five pods, which is also the hard limit. The RC is scaled as shown in Figure 12-24.

Figure 12-24. Scaling the replicas to the hard limit of 5

Scale the RC to six pods, which would exceed the hard limit. The RC is scaled as shown in Figure 12-25.

Figure 12-25. Scaling the replicas to exceed the hard limit of 5

Describe the RC, and the Replicas value is listed as 6 current / 6 desired, as shown in Figure 12-26. Even

though the hard limit on the number of pods is exceeded, an extra pod is scheduled because the scope is set

to BestEffort.

297

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

Saved successfully!

Ooh no, something went wrong!