Difference between revisions of "Helm install grafana"
Jump to navigation
Jump to search
↑ https://techblogs.42gears.com/deploying-prometheus-and-grafana-using-helm-in-kubernetes/
(51 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | * Repo: https://grafana.github.io/helm-charts | ||
+ | * Doc: https://github.com/grafana/helm-charts/blob/main/charts/grafana/README.md#configuration | ||
− | + | Add repo: | |
+ | * <code>[[helm repo add grafana https://grafana.github.io/helm-charts]]</code> | ||
+ | * [[kubectl get ingress -n grafana]] | ||
+ | Some values (<code>[[helm get values grafana --all]]</code>): | ||
+ | persistence.enabled=true | ||
+ | |||
+ | [[ingress.enabled]]=true | ||
+ | [[ingress.hosts]]="[[example.com]]" | ||
+ | [[ingress.tls]]= ?? | ||
+ | ingress.[[ingressClassName]]="nginx" | ||
+ | |||
+ | [[ingress.annotations]] ( add [[acme.cert-manager.io/http01-edit-in-place]]: "true" to ingress) | ||
+ | |||
+ | [[cert-manager.io/issuer]]: letsencrypt-prod | ||
+ | |||
+ | [[service]].[[externalTrafficPolicy]]=Cluster | ||
+ | |||
+ | add [[acme.cert-manager.io/http01-edit-in-place]] to ingress | ||
+ | |||
+ | [[service.port]] | ||
+ | |||
+ | [[replicas]]=1 | ||
+ | |||
+ | k get certificate -A | ||
+ | NAMESPACE NAME READY SECRET AGE | ||
+ | grafana [[quickstart-example-tls]] False quickstart-example-tls 101s | ||
+ | |||
+ | == [[values.yaml]] == | ||
+ | |||
+ | |||
+ | {{helm_release grafana example}} | ||
+ | |||
+ | == Examples == | ||
* <code>[[helm install --set persistence.enabled=true grafana grafana/grafana]]</code> | * <code>[[helm install --set persistence.enabled=true grafana grafana/grafana]]</code> | ||
+ | * <code>[[helm install --set persistence.enabled=true grafana grafana/grafana --set ingress.enabled=true]]</code> | ||
+ | |||
+ | * <code>[[helm install mygrafana grafana/grafana]]</code> | ||
+ | * Deprecated: <code>[[helm install MY GRAFANA NAME stable/grafana]]</code> | ||
+ | |||
+ | [[helm upgrade]] mygrafana stable/grafana [[--reuse-values]] --set replicas=2 | ||
+ | |||
+ | |||
+ | helm install grafana grafana/grafana –namespace grafana –set persistence.enabled=true –set adminPassword=’EKS!sAWSome’ –set datasources.”datasources\.yaml”.apiVersion=1 –set | ||
+ | datasources.”datasources\.yaml”.datasources[0].name=Prometheus –set datasources.”datasources\.yaml”.datasources[0].type=prometheus –set datasources.”datasources\.yaml”.datasources[0].url=http://prometheus- server.prometheus.svc.cluster.local –set datasources.”datasources\.yaml”.datasources[0].access=proxy –set datasources.”datasources\.yaml”.datasources[0].isDefault=true | ||
+ | <ref>https://techblogs.42gears.com/deploying-prometheus-and-grafana-using-helm-in-kubernetes/</ref> | ||
+ | |||
+ | |||
+ | |||
+ | helm install grafana grafana/grafana \ | ||
+ | --namespace grafana \ | ||
+ | --set persistence.[[storageClassName]]="gp2" \ | ||
+ | --set persistence.enabled=true \ | ||
+ | --set adminPassword='EKS!sAWSome' \ | ||
+ | --values ${HOME}/environment/grafana/grafana.yaml \ | ||
+ | --set [[service.type]]=LoadBalancer | ||
+ | https://www.eksworkshop.com/intermediate/240_monitoring/deploy-grafana/ | ||
+ | |||
+ | |||
+ | [[helm upgrade --install --set port=8888 grafana grafana/grafana]] | ||
− | * <code>[[ | + | == Errors == |
+ | * <code>[[json: cannot unmarshal bool into Go struct field IngressSpec.spec.tls of type v1.IngressTLS]]</code> | ||
+ | * <code>[[remote error: tls: unrecognized name]]</code> | ||
+ | == Related == | ||
+ | * <code>[[helm get values grafana --all]]</code> | ||
+ | * <code>[[helm uninstall grafana]]</code> | ||
+ | * <code>[[minikube addons enable ingress]]</code> | ||
+ | * <code>[[helm_release]]</code> | ||
+ | * <code>[[k logs -n grafana grafana]]</code> | ||
== See also == | == See also == | ||
+ | * {{helm install}} | ||
* {{Grafana}} | * {{Grafana}} | ||
[[Category:Grafana]] | [[Category:Grafana]] |
Latest revision as of 08:32, 23 February 2024
- Repo: https://grafana.github.io/helm-charts
- Doc: https://github.com/grafana/helm-charts/blob/main/charts/grafana/README.md#configuration
Add repo:
Some values (helm get values grafana --all
):
persistence.enabled=true ingress.enabled=true ingress.hosts="example.com" ingress.tls= ?? ingress.ingressClassName="nginx"
ingress.annotations ( add acme.cert-manager.io/http01-edit-in-place: "true" to ingress)
cert-manager.io/issuer: letsencrypt-prod
service.externalTrafficPolicy=Cluster
add acme.cert-manager.io/http01-edit-in-place to ingress service.port replicas=1
k get certificate -A NAMESPACE NAME READY SECRET AGE grafana quickstart-example-tls False quickstart-example-tls 101s
Contents
values.yaml[edit]
resource "helm_release" "grafana" { name = "grafana" create_namespace = true namespace = "grafana" repository = "https://grafana.github.io/helm-charts" chart = "grafana" set { name = "ingress.enabled" value = "true" } set_list { name = "ingress.hosts" value = ["example.com"] } set { name = "ingress.ingressClassName" value = "nginx" } set { name = "ingress.tls" value = "true" } }
Examples[edit]
helm install --set persistence.enabled=true grafana grafana/grafana
helm install --set persistence.enabled=true grafana grafana/grafana --set ingress.enabled=true
helm upgrade mygrafana stable/grafana --reuse-values --set replicas=2
helm install grafana grafana/grafana –namespace grafana –set persistence.enabled=true –set adminPassword=’EKS!sAWSome’ –set datasources.”datasources\.yaml”.apiVersion=1 –set datasources.”datasources\.yaml”.datasources[0].name=Prometheus –set datasources.”datasources\.yaml”.datasources[0].type=prometheus –set datasources.”datasources\.yaml”.datasources[0].url=http://prometheus- server.prometheus.svc.cluster.local –set datasources.”datasources\.yaml”.datasources[0].access=proxy –set datasources.”datasources\.yaml”.datasources[0].isDefault=true [1]
helm install grafana grafana/grafana \ --namespace grafana \ --set persistence.storageClassName="gp2" \ --set persistence.enabled=true \ --set adminPassword='EKS!sAWSome' \ --values ${HOME}/environment/grafana/grafana.yaml \ --set service.type=LoadBalancer https://www.eksworkshop.com/intermediate/240_monitoring/deploy-grafana/
helm upgrade --install --set port=8888 grafana grafana/grafana
Errors[edit]
json: cannot unmarshal bool into Go struct field IngressSpec.spec.tls of type v1.IngressTLS
remote error: tls: unrecognized name
Related[edit]
helm get values grafana --all
helm uninstall grafana
minikube addons enable ingress
helm_release
k logs -n grafana grafana
See also[edit]
helm install [ --set | --dry-run | --debug | --timeout | --namespace | --create-namespace | --generate-name | --help ] values.yaml
,helm upgrade --install
- Grafana, Grafana datasources, Grafana Alerting, Grafana installation, Grafana Labs, Grafana Changelog,
Grafana logs
,docker-compose.yml (Grafana)
, Grafana Loki, Grafana Tanka, StatsD and Graphite,grafana-cli
, Loki, LogQL, Grafana Enterprise, Grafana Cloud, Grafana alerts, Amazon Grafana, Grafana OnCall, Grafana Tempo, Grafana Mimir, Grafana agent, plugins, Terraform, Grafana dashboards,/etc/grafana/grafana.ini
, Grafana Pyroscope
Advertising: