Task
Create a HorizontalPodAutoscaler manifest for auto-scaling the API.
Details
- Create
k8s/hpa.yaml
- Target CPU utilization: 70%
- Min replicas: 2, Max replicas: 10
- Reference the API Deployment
- Add memory utilization target as secondary metric
Path
Test
Run kubectl apply --dry-run=client -f k8s/hpa.yaml to validate.
Task
Create a HorizontalPodAutoscaler manifest for auto-scaling the API.
Details
k8s/hpa.yamlPath
k8s/hpa.yamlTest
Run
kubectl apply --dry-run=client -f k8s/hpa.yamlto validate.