$ helm install grafana oci://ghcr.io/grafana-community/helm-charts/grafanaPulled: ghcr.io/grafana-community/helm-charts/grafana:11.3.6Digest: sha256:f0309463e35fa78fe47a337c09ae57da924de95fa93851592cd780b32f9ed82fNAME: grafanaLAST DEPLOYED: Thu Apr 2 10:17:44 2026NAMESPACE: defaultSTATUS: deployedREVISION: 1TEST SUITE: NoneNOTES:1. Get your 'admin' user password by running: kubectl get secret --namespace default grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo2. The Grafana server can be accessed via port 80 on the following DNS name from within your cluster: grafana.default.svc.cluster.local Get the Grafana URL to visit by running these commands in the same shell: export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=grafana" -o jsonpath="{.items[0].metadata.name}") kubectl --namespace default port-forward $POD_NAME 30003. Login with the password from step 1 and the username: admin####################################################################################### WARNING: Persistence is disabled!!! You will lose your data when ########### the Grafana pod is terminated. ######################################################################################
Deploy a full Prometheus monitoring stack on a local Kubernetes cluster using Helm and the prometheus-community chart from Artifact Hub. By the end of this exercise you will be able to:
Add a Helm repository from Artifact Hub
Inspect chart default values
Customize a deployment with a values.yaml file
Enable persistence
Access the Prometheus UI
Upgrade and roll back a release
Prerequisites
Tool
Minimum Version
Check
kubectl
v1.28+
kubectl version --client
helm
v3.12+
helm version
Local cluster
minikube / kind / k3s
kubectl cluster-info
Tip: If you don’t have a cluster, spin one up quickly with:
NAME CHART VERSION APP VERSION DESCRIPTION
prometheus-community/prometheus 25.x.x v2.x.x Prometheus is a monitoring system and TSDB
prometheus-community/kube-prometheus-stack ...
prometheus-community/alertmanager ...
helm show values prometheus-community/prometheus > prometheus-values.yaml
Open the file and locate the persistence section — notice it is disabled by default.
2.2 View chart metadata
helm show chart prometheus-community/prometheus
Part 3 — Create a Custom Values File
Create a file called prometheus-values.yaml with the configuration below:
## Enable persistence so data survives pod restarts persistentVolume: enabled: false## Disable components not needed for this exercisealertmanager: enabled: falseprometheus-pushgateway: enabled: false