This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
сервис_grafana [2026/04/19 13:01] val [Kubernetes] |
сервис_grafana [2026/04/20 14:58] (current) val [Kubernetes] |
||
|---|---|---|---|
| Line 44: | Line 44: | ||
| <code> | <code> | ||
| - | kube1# ###helm repo add grafana https://grafana.github.io/helm-charts | ||
| kube1# helm repo add grafana-community https://grafana-community.github.io/helm-charts | kube1# helm repo add grafana-community https://grafana-community.github.io/helm-charts | ||
| kube1# helm repo update | kube1# helm repo update | ||
| - | kube1:~/vm# cat my-grafana-values.yaml | + | kube1:~/vm# cat grafana-values.yaml |
| </code><code> | </code><code> | ||
| datasources: | datasources: | ||
| Line 92: | Line 91: | ||
| datasource: victoriametrics | datasource: victoriametrics | ||
| </code><code> | </code><code> | ||
| - | kube1:~/vm# ###helm upgrade -i my-grafana grafana/grafana -f my-grafana-values.yaml -n vm --create-namespace | + | kube1:~/vm# helm upgrade -i grafana grafana-community/grafana -f grafana-values.yaml -n vm --create-namespace --version 12.1.1 |
| - | kube1:~/vm# helm upgrade -i my-grafana grafana-community/grafana -f my-grafana-values.yaml -n vm --create-namespace | + | |
| - | kube1# kubectl get secret -n vm my-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo | + | kube1# kubectl get secret -n vm grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo |
| - | cmder> kubectl -n vm port-forward svc/my-grafana 3000:80 | + | cmder> kubectl -n vm port-forward svc/grafana 3000:80 |
| </code> | </code> | ||