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

Finding Node Capacity

A node’s capacity may be found by describing the node. For example:

kubectl describe node ip-10-0-0-50.ec2.internal

The Capacity field lists the node capacity in terms of CPU, memory, and number of pods. The

Allocatable field lists the allocable CPU, memory, and number of pods as shown in Figure 10-5.

Figure 10-5. Node capacity, total and allocatable

The CPU and Memory Requests and Limits including allocated resources are also listed but should

initially all be 0 if no pod is running on the node, as shown in Figure 10-6.

Figure 10-6. CPU and memory requests and limits

For the controller node, the node description should always list the allocated resources as 0 because the

node is not schedulable, as indicated by the NodeNotSchedulable in the Type column in Figure 10-7.

244

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

Saved successfully!

Ooh no, something went wrong!