

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 7
click for more info
Not enough gems
Cost: 6 gems
1: Top
incomplete
2: Vertical and Horizontal Scaling
incomplete
3: Resource Limits
incomplete
4: Limits - RAM
incomplete
5: Breaking the Limits
incomplete
6: Fix the Limits
incomplete
7: Horizontal Pod Autoscaling (HPA)
incomplete
8: HPA - Web
incomplete
9: HPA Fix
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Now that you've seen how an application that chews through CPU will quickly scale up from a single pod to multiple pods, let's see what happens with an application that doesn't have much going on in terms of compute resources.
Delete the line "replicas: 3" from the web deployment. This will allow our new autoscaler to have full control over the number of pods.
Copy your testcpu-hpa.yaml file and call it web-hpa.yaml. Update the following values:
name: web-hpaApply the hpa, then use the following commands to see if any scaling happens:
kubectl get pods
kubectl top pods