We have AWS Lambda, GCP Cloud run servless function options. This will help effectively to autoscale.
For custom apps / rest / flask / fast end points how to we auto scale
- Horizontal Pod Autoscaler (HPA):adjusts the number of replicas of an application.
- HPA is a form of autoscaling that increases or decreases the number of pods
Ref - Link
HorizontalPodAutoscaler Walkthrough
Key Notes
kubectl autoscale subcommand, part of kubectl, that helps you do this.
kubectl autoscale deployment php-apache --cpu-percent=50 --min=1 --max=10
# You can use "hpa" or "horizontalpodautoscaler"; either name works OK.
kubectl get hpa
How to Test Autoscaling in Kubernetes
Keep Exploring!!!
No comments:
Post a Comment