Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
The KCNA Book

You're reading from  The KCNA Book

Product type Book
Published in Jun 2023
Publisher Packt
ISBN-13 9781835080399
Pages 197 pages
Edition 1st Edition
Languages
Author (1):
Nigel Poulton Nigel Poulton
Profile icon Nigel Poulton

Table of Contents (12) Chapters

1. Getting started 2. 1: Setting the scene 3. 2: Cloud native architecture 4. 3: Container orchestration 5. 4: Kubernetes Fundamentals 6. 5: Cloud native application delivery 7. 6: Cloud native observability 8. The exam 9. 8: Sample test
10. What next Appendix A: Chapter quiz answers 1. Appendix B: Sample Test answers

Scheduling

Kubernetes has a built-in scheduler that runs as part of the control plane. It uses advanced logic to schedule pods to the right worker nodes.

Scheduling starts when Kubernetes is asked to run a new pod. This might be you sending a new manifest file to the API server that asks for a new pod, it might be the result of an autoscaling event, or it might even be a self-healing action replacing a failed pod. Either way, as soon as a new pod is requested, it goes into the pending state while the scheduler picks the best node to run it. As soon as a node is identified the pod is scheduled. However, if the scheduler can’t find a suitable node, the pod will stay pending.

Consider the following example. You’re running a Kubernetes cluster with 6 worker nodes and all of your pods have been configured with resource requests and resource limits – resource requests tell the scheduler the minimum amount of CPU and memory a container needs in order to run, whereas...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}