This is the code repository for Kubernetes Autoscaling, First Edition, published by Packt.
Christian Melendez
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.
- Gain a solid foundation in Kubernetes autoscaling and its components
- Scale deployments, jobs, and StatefulSets using KEDA's CRDs
- Configure event-based scaling strategies using metrics and schedules
- Deploy and manage Karpenter for on-demand infrastructure provisioning
- Explore advanced node disruption and lifecycle techniques
- Combine KEDA and Karpenter to implement full-stack autoscaling
- Optimize costs using Spot Instances, scale-to-zero, and workload placement
- Apply real-world patterns and monitor autoscaling performance in production
- Introduction to Kubernetes Autoscaling
- Workload Autoscaling Overview
- Workload Autoscaling with HPA and VPA
- Kubernetes Event-Driven Autoscaling (KEDA)
- KEDA in Action on AWS EKS
- Metrics, Monitoring, and Observability
- Data Plane Autoscaling Overview
- Getting Started with Karpenter
- Karpenter on AWS
- Karpenter Management Operations
- Practical Use Cases
- Patterns and Best Practices
Christian Melendez Christian Melendez is Principal Specialist Solutions Architect and EMEA Lead for Compute at AWS, with a strong background in Kubernetes platform engineering. He has been working with Kubernetes since 2017, helping large enterprises—including telecommunications, airline, and ride-hailing companies—optimize their workloads. Christian is the creator of the Karpenter Blueprints project and an active contributor to autoscaling solutions in the cloud-native space. He frequently delivers talks and workshops on Karpenter and Kubernetes optimization strategies.
