From ad58c56dea70143c77890319a690bb511c4cd6e6 Mon Sep 17 00:00:00 2001 From: "nabil.abdennad" <nabil.abdennadher@hesge.ch> Date: Mon, 21 Oct 2024 15:39:51 +0200 Subject: [PATCH] updates --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5cc0707..02b0300 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ In this exercise, students will deploy a Kubernetes cluster locally to manage an application that retrieves and stores electrical consumption data, forecasts future consumption, and presents both historical and projected consumption trends. -The electrical consumption is reprsented by a a CSV file stored on S3. This CSV file has 11 columns. The first column is the time stamp. The other ten columns each represent the power measurements (P) of a smart meter's electricity consumption. Measurements are taken every 15 minutes. A row in the CSV file therefore corresponds to the power measurement at a given time t (HH:00, HH:15, HH:30. HH:45) for the 10 smart meters. The measures cover the period 04.01.2021 - 31.12.2022. +The electrical consumption is reprsented by a a CSV file stored on S3. This CSV file has 11 columns. The first column is the time stamp. The other ten columns each represent the power measurements (P) of a smart meter's electricity consumption. Measurements are taken every 15 minutes. A row in the CSV file therefore corresponds to the power measurement at a given time t (HH:00, HH:15, HH:30. HH:45) for the 10 smart meters. The measures cover the period 01.01.2021 - 31.05.2022. The application will be deployed on a local kubernetes cluster created using the [kind] (https://kind.sigs.k8s.io/) tool. @@ -134,14 +134,14 @@ Build the Data Retrieval docker, complete the file "data-retrieval-deployment.ya ### Task 4: Grafana deployment - +Fill the grafane-deployment.yaml and deploy. ### Task 5: Load Balancer Kubernetes provides Load Balancing capabilities natively. This permits the distribution of load between several replicas of the same pod. But, as we are deploying using kind, to access this ability we have to create a port-forward between the service and the host device: ```bash -kubectl port-forward service/grafana 3000:3000 +kubectl port-forward service/grafana-service 3000:3000 ``` In this case we only require one port forward, between the grafana service (the frontend to this service), and the host. Once this PF is established, we are able to access the grafana interface on `http://localhost:3000`. -- GitLab