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

From wikieduonline
Jump to navigation Jump to search

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

Dec 2022[edit]

NAME: grafana
LAST DEPLOYED: Thu Dec  8 18:56:19 2022
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 

   If you bind grafana to 80, please update values in values.yaml and reinstall:
   ```
   securityContext:
     runAsUser: 0
     runAsGroup: 0
     fsGroup: 0

   command:
   - "setcap"
   - "'cap_net_bind_service=+ep'"
   - "/usr/sbin/grafana-server &&"
   - "sh"
   - "/run.sh"
   ```
   Details refer to https://grafana.com/docs/installation/configuration/#http-port.
   Or grafana would always crash. 

   From outside the cluster, the server URL(s) are:
     http://chart-example.local 

3. Login with the password from step 1 and the username: admin

Example execution May 2022[edit]

NAME: grafana
LAST DEPLOYED: Wed May 25 14:36:46 2022
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 

   If you bind grafana to 80, please update values in values.yaml and reinstall:
   ```
   securityContext:
     runAsUser: 0
     runAsGroup: 0
     fsGroup: 0 

  command:
   - "setcap"
   - "'cap_net_bind_service=+ep'"
   - "/usr/sbin/grafana-server &&"
   - "sh"
   - "/run.sh"
   ```
   Details refer to https://grafana.com/docs/installation/configuration/#http-port.
   Or grafana would always crash.
   From outside the cluster, the server URL(s) are:
     http://chart-example.local


3. Login with the password from step 1 and the username: admin

Example execution 2021[edit]

W1205 23:28:37.364414   48512 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable 
in v1.25+
W1205 23:28:37.891293   48512 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable 
in v1.25+
W1205 23:28:46.840558   48512 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable 
in v1.25+
W1205 23:28:46.840647   48512 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable 
in v1.25+

NAME: grafana
LAST DEPLOYED: Sun Dec  5 23:28:32 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


   If you bind grafana to 80, please update values in values.yaml and reinstall:
   ```
   securityContext:
     runAsUser: 0
     runAsGroup: 0
     fsGroup: 0

   command:
   - "setcap"
   - "'cap_net_bind_service=+ep'"
   - "/usr/sbin/grafana-server &&"
   - "sh"
   - "/run.sh"
   ```
   Details refer to https://grafana.com/docs/installation/configuration/#http-port.
   Or grafana would always crash.
   From outside the cluster, the server URL(s) are:
     http://chart-example.local


3. Login with the password from step 1 and the username: admin

Related[edit]

See also[edit]

Advertising: