the ideas to create Horizontal Pod Autoscaling based on CPU utilization with prometheus and grafana to continously monitoring cluster. This project aims to fulfill final assignment, it might be a lot of misconception about everything and it might be not a best practice to do. im still working and learn on this project to make it perfect.
used tools :
| Software | Version |
|---|---|
| Ubuntu | v20.04 |
| Minikube | v1.31.2 |
| Kubernetes | v1.27.4 |
| Kubectl | v1.28.4 |
| Docker | v24.0.4 |
| kube-stats-metrics | v2.10.0 |
| Prometheus | v2.47.2 |
| Grafana | v10.2.0 |
Tip
please use specific version mentioned above to avoid error
required to install before begin:
this deployment using php to create demo web app that use a lot of CPU resource. you can use another programming language too, as long as it can stimulate high CPU resource.
- deploy demo app (using php-apache) in this section
- deploy load generator (using busybox) in this section
- deploy Horizontal Pod Autoscaler 1in this section
- deploy configure monitoring tools in this section
- deploy Prometheus
- deploy Grafana