Join our community of software engineering leaders and aspirational developers. Always
stay in-the-know by getting the most important news and exclusive content delivered
fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter
in the past. Click the button below to open the re-subscribe form
in a new tab. When you're done, simply close that tab and continue
with this form to complete your subscription.
The New Stack does not sell your information or share it with
unaffiliated third parties. By continuing, you agree to our
Terms of Use and
Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!
We’re so glad you’re here. You can expect all the best TNS content to arrive
Monday through Friday to keep you on top of the news and at the top of your game.
What’s next?
Check your inbox for a confirmation email where you can adjust your preferences
and even join additional groups.
Follow TNS on your favorite social media networks.
If you’ve been wrestling with slow node scaling and surprise AWS bills from Cluster Autoscaler, you’re not alone. AWS Elastic Kubernetes Service’s (EKS) default autoscaling can feel sluggish when your workloads spike, and those extra nodes add up fast on your monthly invoice.
Karpenter v0.32+, an open source Kubernetes autoscaler, changes the game entirely. Instead of waiting around for nodes to spin up or managing complex autoscaling groups, you get lightning-fast provisioning that actually thinks about cost. This guide walks you through ditching Cluster Autoscaler for Karpenter’s newer NodePool and EC2NodeClass setup, and shows you how to save money while you’re at it.
Important warning: Please don’t try this on production first. Test everything in a safe environment where breaking things won’t wake you up in a cold sweat at 3 a.m.
Why Bother With Karpenter v0.32+?
The latest Karpenter architecture fixes a lot of the headaches that come with traditional autoscaling:
Things actually make sense now: NodePool handles when and how to scale, while EC2NodeClass deals with the AWS nitty-gritty. This means no more tangled configurations that nobody understands six months later.
Write once, use everywhere: Create an EC2NodeClass template and share it across multiple NodePools. Your future self will thank you when you’re not copy-pasting configs.
Your wallet will notice: Karpenter spins up exactly what you need, when you need it, and isn’t shy about using spot instances to slash costs. Plus, scaling happens in seconds.
Caution: Confirm all workloads are on Karpenter nodes before proceeding.
2. Remove Cluster Autoscaler:
`kubectl delete deployment cluster-autoscaler -n kube-system`
Tip: Monitor workloads to ensure they’re unaffected after scaling down.
Step 6: Verify Migration
Confirm Karpenter is working correctly:
1. Check Karpenter Logs: Look for provisioning events or errors.
`kubectl logs -f -n karpenter -l app.kubernetes.io/name=karpenter`
Expected: Logs should show node provisioning or no errors.
2. Monitor Node Provisioning: Watch for new nodes joining the cluster.
kubectl get nodes -wExpected: New nodes should appear with Karpenter-managed labels (such as `karpenter.sh/provisioner-name`).
1. Check NodePool Status importers: `kubectl get nodepools`
Expected: The default NodePool should show as Ready.
2. Check EC2NodeClass Status: `kubectl get ec2nodeclasses`
Expected: The default EC2NodeClass should show as Ready.
Advanced Configuration Examples
Tailor Karpenter for specific workloads:
1. Compute-optimized NodePool: Ideal for CPU-intensive workloads like machine learning (ML).
Migrating to Karpenter v0.32+ transforms EKS node management with faster scaling, cost savings and simplified operations.
By following this guide, you can leverage NodePool and EC2NodeClass for flexible, efficient autoscaling. Test the migration in a nonproduction environment first, and join the Karpenter Slack community to share feedback or get help!
Additional Resources
Read Andela’s guide and discover how to optimize AWS Lambda to improve cost efficiency and performance.
Andela provides the world’s largest private marketplace for global remote tech talent driven by an AI-powered platform to manage the complete contract hiring lifecycle. Andela helps companies scale teams & deliver projects faster via specialized areas: App Engineering, AI, Cloud, Data & Analytics.