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 10 ■ Configuring Compute Resources

Limit on Number of Pods

The number of pods that can be scheduled on a node is limited by the allocable node capacity, which

includes the limit of 110 on the number of pods. To demonstrate, scale the RC to 400 pods. The RC is scaled

to 400 replicas and no error is generated, as shown in Figure 10-18.

Figure 10-18. Scaling to 400 nodes

But 400 pods cannot run on three nodes; this is limited not only by the limit on the number of pods per

node but also by the allocable CPU and memory. The pods that cannot run are put in Pending status and no

node is allocated to them, as shown in Figure 10-19.

Figure 10-19. Pods put in Pending status

Scale the RC back to five replicas. The Pending pods are not immediately removed. But five running

pods are listed, as shown in Figure 10-20.

252

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

Saved successfully!

Ooh no, something went wrong!