Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Kubernetes Autoscaling
  • Table Of Contents Toc
Kubernetes Autoscaling

Kubernetes Autoscaling

By : Christian Melendez
close
close
Kubernetes Autoscaling

Kubernetes Autoscaling

By: Christian Melendez

Overview of this book

Kubernetes is the backbone of modern containerized infrastructure, but scaling it efficiently remains a challenge. Kubernetes Autoscaling equips cloud professionals with this comprehensive guide to dynamically scaling applications and infrastructure using the powerful combination of Kubernetes Event-Driven Autoscaler (KEDA) and Karpenter, AWS’s next-generation cluster autoscaler. You’ll begin with autoscaling fundamentals, move through HPA and VPA, and then get hands-on KEDA for event-driven workloads and Karpenter for data plane scaling. With the help of real-world use cases, best practices, and detailed patterns, you’ll deploy resilient, scalable, and cost-effective Kubernetes clusters across production environments. By the end of this book, you’ll be able to implement practical autoscaling strategies to improve performance, reduce cloud costs, and eliminate over-provisioning.
Table of Contents (20 chapters)
close
close
Lock Free Chapter
1
Part 1: Getting started with Kubernetes Autoscaling
5
Part 2: Workload Autoscaling and KEDA
9
Part 3: Node Autoscaling and Karpenter
14
Part 4: Use Cases, Patterns, and Recommendations
18
Other Books You May Enjoy
19
Index

Use case 2: Batch jobs

During this second use case, we’re going to continue using the same hands-on lab used when showing how KEDA can scale jobs driven by messages from a RabbitMQ queue. During this lab, you’ll also see Karpenter scaling down to zero nodes again. But this time, we’ll add a protection mechanism for voluntary disruptions (i.e., consolidation or drift) to let jobs finish. See Figure 11.2 with all the components involved in this use case.

Figure 11.2 – Autoscaling a job workload with KEDA and Karpenter

Figure 11.2 – Autoscaling a job workload with KEDA and Karpenter

As before, we’ll explore each component from the diagram during the hands-on lab. But notice that in addition to a ScaledJob object from the Chapter 4 lab, we’re going to reuse the same NodePool as before because the protection mechanism is going to come from the pods, and not from a Karpenter NodePool.

Although during this lab we’re focusing on data processing jobs, the same pattern could apply to machine...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Kubernetes Autoscaling
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon