From 3838d111621aac03ac694d5da08b0d98e4de3c0d Mon Sep 17 00:00:00 2001 From: Jeffrey Allen Date: Fri, 9 Aug 2024 09:32:14 -0500 Subject: [PATCH] Networking Lab Section4: Fixed svc name & formatted lab.md --- Kubernetes-Networking/Section4/lab.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Kubernetes-Networking/Section4/lab.md b/Kubernetes-Networking/Section4/lab.md index 520954f9f..39173ef12 100644 --- a/Kubernetes-Networking/Section4/lab.md +++ b/Kubernetes-Networking/Section4/lab.md @@ -2,22 +2,23 @@ ## Configuring Grafana and Prometheus +```bash helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo update helm install kube-prometheus -n monitoring prometheus-community/kube-prometheus-stack --create-namespace +``` Forward the port of the UI so you can log into Prometheus and see the Metrics. -``` -kubectl --namespace monitoring port-forward svc/prometheus-k8s 9090 +```bash +kubectl --namespace monitoring port-forward svc/prometheus-operated 9090 ``` Forward the port of the Grafana UI so you can log in and see the graphs - -``` +```bash kubectl --namespace monitoring port-forward svc/kube-prometheus-grafana 3000:80 ``` @@ -81,4 +82,4 @@ spec: maxReplicas: 10 targetCPUUtilizationPercentage: 50 EOF -``` \ No newline at end of file +```