grafana-operator
by Helm
Grafana-operator Helm chart for Kubernetes
About this chart
grafana-operator
grafana-operator is an Operator which introduces Lifecycle Management for Grafana Dashboards and Plugins. This chart is based on bitnami's [grafana-operator]https://github.com/bitnami/charts) chart.
TL;DR
$ helm repo add banzaicloud-stable https://kubernetes-charts.banzaicloud.com
$ helm repo update
$ helm install banzaicloud-stable/grafana-operator
Introduction
This chart bootstraps a [Grafana Operator]https://github.com/integr8ly/grafana-operator) deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.16+ with Beta APIs enabled
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add banzaicloud-stable https://kubernetes-charts.banzaicloud.com
$ helm install banzaicloud-stable/grafana-operator
CRDs
Use createCustomResource=false with Helm v3 to avoid trying to create CRDs from the crds folder and from templates at the same time.
The command deploys Grafana operator on the Kubernetes cluster with the default configuration. The configuration section lists the parameters that can be configured during installation.
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all Kubernetes components associated with the chart and deletes the release.
Parameters
The following tables lists the configurable parameters of the grafana-operator chart and their default values.
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
image.registry | Grafana Operator image registry | quay.io |
image.repository | Grafana Operator image name | integreatly/grafana-operator |
image.tag | Grafana Operator image tag | {TAG_NAME} |
image.pullPolicy | Grafana Operator image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
replicaCount | Specify the amount of replicas running | 1 |
updateStrategy | Specify the updateStrategy of the containers | {"type": "RollingUpdate"} |
args.scanAllNamespaces | Specify if all namespace should be scanned for dashboards and datasources. (Creates ClusterRole) | false |
args.scanNamespaces | Specify the namespaces which should be scanned for dashboards and datasources (Creates ClusterRole) | [] (does not add ClusterRole or Namespaces) |
grafana.image.registry | Grafana image registry | docker.io |
grafana.image.repository | Grafana image name | grafana/grafana |
grafana.image.tag | Grafana image tag | {TAG_NAME} |
grafana.deployment.annotations | Additional annotations for the service | {} |
grafana.deployment.labels | Additional labels for the service | {} |
grafana.deployment.nodeSelector | Additional labels for the running grafana pods in a labeled node. | {} |
grafana.deployment.tolerations | Additonal labels for running grafana pods in tained nodes. | [] |
grafana.deployment.affinity | Additonal labels for running grafana pods with affinity properties. | {} |
grafana.deployment.envFrom | Environment variables from Secret or ConfigMap. | [] |
grafana.deployment.skipCreateAdminAccount | Disable creating a random admin user | false |
grafana.deployment.priorityClassName | Pod priority class name | `` |
grafana.deployment.annotations | Additional annotations for the service | {} |
grafanaPluginInit.image.registry | Grafana Plugin Init image registry | quay.io |
grafanaPluginInit.image.repository | Grafana Plugin Init image name | integreatly/grafana_plugins_init |
grafanaPluginInit.image.tag | Grafana Plugin Init image tag | {TAG_NAME} |
resources.limits | Specify resource limits which the container is not allowed to succeed. | {} (does not add resource limits to deployed pods) |
resources.requests | Specify resource requests which the container needs to spawn. | {} (does not add resource limits to deployed pods) |
nodeSelector | Node labels for controller pod assignment | {} |
tolerations | Tolerations for controller pod assignment | [] |
affinity | Affinity for controller pod assignment | {} |
podAnnotations | Controller Pod annotations | {} |
serviceAccount.create | create a serviceAccount for the controller pod | true |
serviceAccount.name | use the serviceAccount with the specified name | `` |
securityContext.enabled | Enable pods' security context | true |
securityContext.runAsNonRoot | MetalLB Controller must runs as nonRoot. | true |
securityContext.runAsUser | User ID for the pods. | 1001 |
securityContext.runAsGroup | User ID for the pods. | 1001 |
securityContext.fsGroup | Group ID for the pods. | 1001 |
securityContext.supplementalGroups | Drop capabilities for the securityContext | [] |
speaker.extraEnvVars | Extra environment variable to pass to the running container. | [] |
nameOverride | String to partially override metallb.fullname template with a string (will prepend the release name) | nil |
fullnameOverride | String to fully override metallb.fullname template with a string | nil |
livenessProbe.enabled | Enable/disable the Liveness probe | true |
livenessProbe.initialDelaySeconds | Delay before liveness probe is initiated | 3 |
livenessProbe.periodSeconds | How often to perform the probe | 10 |
livenessProbe.timeoutSeconds | When the probe times out | 10 |
livenessProbe.successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed. | 1 |
livenessProbe.failureThreshold | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 1 |
readinessProbe.enabled | Enable/disable the Liveness probe | true |
readinessProbe.initialDelaySeconds | Delay before liveness probe is initiated | 3 |
readinessProbe.periodSeconds | How often to perform the probe | 10 |
readinessProbe.timeoutSeconds | When the probe times out | 10 |
readinessProbe.successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed. | 1 |
readinessProbe.failureThreshold | Minimum consecutive failures for the p |
Deploy grafana-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has grafana-operator 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgrafana-operator is pinned at v0.3.18 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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