- Check if Docker and Docker compose installed:
docker --version && docker-compose --version
- Launch the stack:
docker-compose up -d
- Open the browser and access the web app:
http://localhost:3000
- Open the browser and access the Grafana:
http://localhost:3001
, you can see the HTTP blackbox exporter and Redis dashboards with all the metrics.
- Install Minikube: Get Minikube from their website and follow the installation instructions.
- Start Minikube: Open your terminal and type
minikube start
to start the local Kubernetes cluster. Ensure it's up and running:minikube kubectl -- get pods -A
- Allow minikube accessing local images:
minikube -p minikube docker-env
- Install Helm: Download and install Helm following their instructions.
- Install the chart:
helm install mychart ./mychart --namespace=default
- Test the web app by port-forwarding the port 3000 to your computer, you can use Lens app for that. Access it using web browser or curl.
- Port-forward grafana, access it using default credentials admin/admin and see the dashboards with all the metrics.
- Scale down the web app deployment to zero by modifying values.yaml and upgrading helm release or manually:
minikube kubectl -- scale --current-replicas=2 --replicas=0 deployment/mychart-mychart-web
. Observe the metrics and graphs in the Grafana UI.