From 3a6aea907458fd76aca5df56bdac844f0a78d924 Mon Sep 17 00:00:00 2001 From: monu613 <108486812+monu613@users.noreply.github.com> Date: Fri, 16 Feb 2024 14:58:32 +0530 Subject: [PATCH] Update helm.md updated expose command and added command to extract password in windows running minikube --- Installation/Grafana/helm.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Installation/Grafana/helm.md b/Installation/Grafana/helm.md index a045f25..1386b70 100644 --- a/Installation/Grafana/helm.md +++ b/Installation/Grafana/helm.md @@ -14,4 +14,9 @@ ## Expose Grafana Service -`kubectl expose service grafana — type=NodePort — target-port=3000 — name=grafana-ext` +`kubectl expose service grafana --type=NodePort --target-port=3000 --name=grafana-ext` + + +## The command to get grafana password does not work on windows cmd/powershell as base64 is not a recognoised command. Use the below command to extract the password. +kubectl get secret --namespace default grafana -o jsonpath="{.data.admin-password}" | ForEach-Object { [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($_)) } +