Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhuong authored Jun 24, 2022
1 parent 7974082 commit de66be3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Practice-6/Dinh-Thi-Huong/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,20 @@ kubectl -n hpa-test get hpa php-apache -o yaml

<img src="img/get-hpa.png">
- Now run the load test and see the HPA status again


```
kubectl -n hpa-test run -i --tty load-generator --rm --image=busybox --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O- http://php-apache; done"
```


<img src="img/load-generator.png">
<img src="img/get-hpa-2.png">
- Stop the load by pressing CTRL-C and then get the hpa status again , this will show things get back to normal and one replica running
<img src="img/get-hpa-3.png">
- Clean up the resources


```
kubectl delete ns hpa-test --cascade
```
Expand Down

0 comments on commit de66be3

Please sign in to comment.