grafana

by 4ops

Helm chartv1.0.2App 7.3.6Verified publisher

Grafana is an open source, feature rich metrics dashboard and graph editor for Graphite, Elasticsearch, OpenTSDB, Prometheus and InfluxDB.

About this chart

grafana

Grafana is an open source, feature rich metrics dashboard and graph editor for Graphite, Elasticsearch, OpenTSDB, Prometheus and InfluxDB.

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add kube-ops https://charts.kube-ops.io
$ helm repo update
$ helm upgrade my-release kube-ops/grafana --install --namespace my-namespace --create-namespace --wait

Uninstalling the Chart

To uninstall the chart:

$ helm uninstall my-release --namespace my-namespace

Values

KeyTypeDefaultDescription
adminPasswordstring""
adminUserstring"admin"
affinityobject{}Affinity for pod assignment ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
annotationsobject{}
dnsConfigobject{}
dnsPolicystring""
ephemeralContainerslist[]
extraArgslist[]Additional CLI arguments for application
extraContainerslist[]Specifies additional containers
extraEnvVarslist[]Additional environment variables
extraVolumeMountslist[]
extraVolumeslist[]Additional mounts for application
fullnameOverridestring""Overrides the full name
global.imagePullPolicystring"IfNotPresent"Image download policy ref: https://kubernetes.io/docs/concepts/containers/images/#updating-images
global.imagePullSecretslist[]List of the Docker registry credentials ref: https://kubernetes.io/docs/concepts/containers/images/#updating-images
hostAliaseslist[]
httpPortint3000
image.repositorystring"docker.io/grafana/grafana"Overrides the image repository
image.tagstring""Overrides the image tag whose default is the chart appVersion.
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalseSpecifies whether a ingress should be created
ingress.hosts[0].hoststring"chart-template.example.com"
ingress.hosts[0].paths[0]string"/"
ingress.labelsobject{}
ingress.tlslist[]
initContainerslist[]Specifies init containers
labelsobject{}
nameOverridestring""Overrides the chart name
networkPolicy.annotationsobject{}Annotations for NetworkPolicy
networkPolicy.egresslist[{}]Egress rules
networkPolicy.enabledboolfalseSpecifies whether a NetworkPolicy should be created
networkPolicy.ingresslist[{}]Ingress rules
networkPolicy.labelsobject{}Additional labels for NetworkPolicy
nodeSelectorobject{}
pdb.enabledboolfalseSpecifies whether a pod disruption budget should be created
persistence.accessModes[0]string"ReadWriteOnce"
persistence.annotationsobject{}
persistence.dataSourceobject{}
persistence.enabledboolfalse
persistence.existingClaimstring""
persistence.selectorobject{}
persistence.sizestring"8Gi"
persistence.storageClassNamestring""
persistence.volumeModestring"Filesystem"
podAnnotationsobject{}
podLabelsobject{}
podSecurityContextobject{"fsGroup":472,"runAsNonRoot":true}Pod security settings
podSecurityPolicy.annotationsobject{}
podSecurityPolicy.createbooltrueSpecifies whether a pod security policy should be created
podSecurityPolicy.enabledbooltrueSpecifies whether a pod security policy should be enabled
podSecurityPolicy.namestring""The name of the pod security policy to use. If not set and create is true, a name is generated using the fullname template
postStartHookobject{}This hook is executed immediately after a container is created. However, there is no guarantee that the hook will execute before the container ENTRYPOINT.
preStopHookobject{}This hook is called immediately before a container is terminated due to an API request or management event such as liveness probe failure, preemption, resource contention and others. ref: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
priorityint0
priorityClassNamestring""Overrides default priority class ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
rbac.annotationsobject{}
rbac.createbooltrueSpecifies whether a cluster role should be created
rbac.namestringGenerated using the fullname templateThe name of the cluster role to use.
replicasint1Replicas count
resourcesobject{}
revisionHistoryLimitint10specifies the number of old ReplicaSets to retain to allow rollback ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#revision-history-limit
runtimeClassNamestring""Overrides default runtime class
schedulerNamestring""Overrides default scheduler
service.annotationsobject{}Annotations for Service resource
service.clusterIPstring""Exposes the Service on a cluster IP ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
service.externalTrafficPolicystring"Cluster"If you set service.spec.externalTrafficPolicy to the value Local, kube-proxy only proxies proxy requests to local endpoints, and does not forward traffic to other nodes. This approach preserves the original source IP address. If there are no local endpoints, packets sent to the node are dropped, so you can rely on the correct source-ip in any packet processing rules you might apply a packet that make it through to the endpoint. ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-type-nodeport
service.httpNodePortint30080Node port number (service.type==NodePort)
service.httpPortint80HTTP port number
service.labelsobject{}Additional labels for Service resource
service.loadBalancerIPstring""Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field.
service.loadBalancerSourceRangeslist[]If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/
service.sessionAffinitystring"None"Supports "ClientIP" and "None". Used to maintain session affinity.
service.sessionAffinityConfigobject{"clientIP":{"timeoutSeconds":10800}}Contains the configurations of session affinity. Only used if service.sessionAffinity == ClientIP service.sessionAffinityConfig.clientIP.timeoutSeconds -- The value must be >0 && <=86400
service.topologyboolfalseenables a service to route traffic based upon the Node topology of the cluster ref: https://kubernetes.io/docs/concepts/services-networking/service-topology/#using-service-topology Kubernetes >= kubeVersion 1.18
service.topologyKeyslist[]A preference-order list of topology keys which implementations of services should use to preferentially sort endpoints when accessing this Service, it can not be used at the same time as externalTrafficPolicy=Local ref: https://kubernetes.io/docs/concepts/services-networking/service-topology/#using-service-topology
service.typestring"ClusterIP"Kubernetes ServiceTypes allow you to specify what kind of Service you want ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.labelsobject{}Labels to add to the service account
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
serviceMonitor.annotationsobject{}
serviceMonitor.enabledboolfalseSpecifies whether a ServiceMonitor should be created (prometheus operator CRDs required)
serviceMonitor.honorLabelsboolfalse
serviceMonitor.intervalstring"30s"
serviceMonitor.jobLabelstring"app.kubernetes.io/name"
serviceMonitor.labelsobject{}
serviceMonitor.metricRelabelingslist[]
serviceMonitor.namespacestring"monitoring"
serviceMonitor.pathstring"/metrics"
serviceMonitor.scrapeTimeoutstring"30s"
startupProbeobject{}
terminationGracePeriodSecondsint4800Grace period before the Pod is allowed to be forcefully killed ref: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/
tolerationslist[]
topologySpreadConstraintslist[]control how Pods are spread across your cluster among failure-domains such as regions, zones, nodes, and other user-defined topology domains. ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
updateStrategy.typestring"Recreate"

Requirements

Kubernetes: >= 1.18.0

RepositoryNameVersion
https://charts.kube-ops.iogenerate~0.2.3

Autogenerated from chart metadata using helm-docs v1.4.0

Deploy grafana with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has grafana on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgrafana is pinned at v1.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply