Question
Apply autoscaling to webapp Deployment with minimum 10 and maximum 20 replicas and target CPU of 85%.
Verify hpa is created and replicas are increased to 10 from 1.
Answer
Creating hpa is simple:
kubectl autoscale deploy webapp --min=10 --max=20 --cpu-percent=85
Verify:
kubectl get hpa
kubectl get deploy
kubectl get po