helm install --set persistence.enabled=true grafana grafana/grafana

From wikieduonline
Revision as of 15:30, 8 December 2022 by Tesladict (talk | contribs)
Jump to navigation Jump to search

helm repo add grafana https://grafana.github.io/helm-charts


helm install --set persistence.enabled=true grafana grafana/grafana --set ingress.enabled=true
helm install mygrafana grafana/grafana --set persistence.enabled=true --set persistence.accessModes={ReadWriteOnce} --set persistence.size=8Gi


helm install --set persistence.enabled=true grafana grafana/grafana
W1128 19:49:11.154377   75994 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
W1128 19:49:11.720453   75994 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
W1128 19:49:21.514994   75994 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
W1128 19:49:21.515122   75994 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
NAME: grafana
LAST DEPLOYED: Sun Nov 28 19:49:05 2021
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:

1. Get your 'admin' user password by running: 

   kubectl get secret --namespace default grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo 
 
2. 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 3000
 
3. Login with the password from step 1 and the username: admin


Connect to: http://localhost:3000/login


Errors

 helm install --set persistence.enabled=true grafana grafana/grafana
Error: INSTALLATION FAILED: failed to download "grafana/grafana"

Related

See also

Advertising: