Difference between revisions of "Helm install grafana"

From wikieduonline
Jump to navigation Jump to search
Line 17: Line 17:
 
  [[ingress.annotations]] ( add [[acme.cert-manager.io/http01-edit-in-place]] to ingress)
 
  [[ingress.annotations]] ( add [[acme.cert-manager.io/http01-edit-in-place]] to ingress)
  
  service.[[externalTrafficPolicy]]=Cluster
+
  [[service]].[[externalTrafficPolicy]]=Cluster
  
 
  add [[acme.cert-manager.io/http01-edit-in-place]] to ingress
 
  add [[acme.cert-manager.io/http01-edit-in-place]] to ingress

Revision as of 08:13, 23 February 2024

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 to ingress)
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

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

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

Related

See also

  • https://techblogs.42gears.com/deploying-prometheus-and-grafana-using-helm-in-kubernetes/
  • Advertising: