This repository contains the yaml files for the second exercise
This repository contains all yaml files necessary for the second exercise.
- deployment.yaml
- service.yaml
- hpa.yaml
For this project minikube and its dashboard was used.
apply the yaml files with kubectl apply -f *.yaml
To test the autoscaling a pod with BusyBox was deployed, which sends requests to the deployment.
kubectl run -i --tty load-generator --rm --image=busybox:1.28 --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O- http://web-blog; done"
And to check how the autoscaler increases the pods enter kubectl get hpa -w