CKA EXAM QS-1 2025
- Ingress now
- Oct 20
- 1 min read
1- Create a new Horizontal PodAutoscale (HPA) named apache-server in the autoscale namesapce.
2-This HPA must target the existing Deployment called apacheserver in the autoscale namespace.
3-Set the HPA to aim for 50% CPU Usage per pod. Configure it to have at least 1 pod and no more than 4 Pods. Also, Set the downscale stabilization window to 30 Seconds.
Answer: Got to kubernetes Website and search and click on horizontal-podautoscale-walkthrough and copy below menifiest and deploy and do practice
===========================================================
Step 1: Create HPA
kubectl autoscale deployment apacheserver --cpu-percent=50 --min=1 --max=4 -n autoscale --name=apache-server
Step 2: Edit HPA to set the stabilization window
kubectl edit hpa apache-server -n autoscale
behavior:
scaleDown:
stabilizationWindowSeconds: 30
:wq
Final verification:
kubectl top pods ==> to check CPU utilization:
kubectl get hpa -n autoscale
kubectl describe hpa apache-server -n autoscale




Really very useful