loki-simple-scalable

by Grafana

Helm chartv1.8.11App 2.6.1

Helm chart for Grafana Loki in simple, scalable mode

About this chart

loki-simple-scalable

Helm chart for Grafana Loki in simple, scalable mode

Source Code

Requirements

RepositoryNameVersion
https://grafana.github.io/helm-chartsgrafana-agent-operator(grafana-agent-operator)0.2.2
https://helm.min.io/minio(minio)8.0.9

Chart Repo

Add the following repo to use the chart:

helm repo add grafana https://grafana.github.io/helm-charts

Values

KeyTypeDefaultDescription
enterprise.adminApiobject{"enabled":true}If enabled, the correct admin_client storage will be configured. If disabled while running enterprise, make sure auth is set to type: trust, or that auth_enabled is set to false.
enterprise.configstringref: https://grafana.com/docs/loki/latest/configuration/examples/Enterprise specific sections of the config.yaml file
enterprise.enabledboolfalse
enterprise.externalLicenseNamestringnilName of external licesne secret to use
enterprise.image.pullPolicystring"IfNotPresent"Docker image pull policy
enterprise.image.registrystring"docker.io"The Docker registry
enterprise.image.repositorystring"grafana/enterprise-logs"Docker image repository
enterprise.image.tagstring"v1.4.0"Overrides the image tag whose default is the chart's appVersion
enterprise.license.contentsstring"NOTAVALIDLICENSE"Grafana Enterprise Logs license In order to use Grafana Enterprise Logs features, you will need to provide the contents of your Grafana Enterprise Logs license, either by providing the contents of the license.jwt, or the name Kubernetes Secret that contains your license.jwt. To set the license contents, use the flag --set-file 'license.contents=./license.jwt'
enterprise.tokengen.adminTokenSecretstring"gel-admin-token"Name of the secret to store the admin token in
enterprise.tokengen.annotationsobject{}Additional annotations for the tokengen Job
enterprise.tokengen.enabledbooltrueWhether the job should be part of the deployment
enterprise.tokengen.envlist[]Additional Kubernetes environment
enterprise.tokengen.extraArgslist[]Additional CLI arguments for the tokengen target
enterprise.tokengen.extraVolumeMountslist[]Additional volume mounts for Pods
enterprise.tokengen.extraVolumeslist[]Additional volumes for Pods
enterprise.tokengen.imagestring"bitnami/kubectl"Job Create Secret Stage Image to Utilize
enterprise.tokengen.labelsobject{}Additional labels for the tokengen Job
enterprise.tokengen.securityContextobjectSee: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/Run containers as user enterprise-logs(uid=10001)
enterprise.useExternalLicenseboolfalseSet to true when providing an external license
enterprise.versionstring"v1.5.1"
fullnameOverridestringnilOverrides the chart's computed fullname
gateway.affinitystringHard node and soft zone anti-affinityAffinity for gateway pods. Passed through tpl and, thus, to be configured as string
gateway.autoscaling.enabledboolfalseEnable autoscaling for the gateway
gateway.autoscaling.maxReplicasint3Maximum autoscaling replicas for the gateway
gateway.autoscaling.minReplicasint1Minimum autoscaling replicas for the gateway
gateway.autoscaling.targetCPUUtilizationPercentageint60Target CPU utilisation percentage for the gateway
gateway.autoscaling.targetMemoryUtilizationPercentagestringnilTarget memory utilisation percentage for the gateway
gateway.basicAuth.enabledboolfalseEnables basic authentication for the gateway
gateway.basicAuth.existingSecretstringnilExisting basic auth secret to use. Must contain '.htpasswd'
gateway.basicAuth.htpasswdstringSee values.yamlUses the specified username and password to compute a htpasswd using Sprig's htpasswd function. The value is templated using tpl. Override this to use a custom htpasswd, e.g. in case the default causes high CPU load.
gateway.basicAuth.passwordstringnilThe basic auth password for the gateway
gateway.basicAuth.usernamestringnilThe basic auth username for the gateway
gateway.containerSecurityContextobjectSee: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/The SecurityContext for gateway containers
gateway.deploymentStrategyobjectref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategySee kubectl explain deployment.spec.strategy for more
gateway.enabledbooltrueSpecifies whether the gateway should be enabled
gateway.extraArgslist[]Additional CLI args for the gateway
gateway.extraEnvlist[]Environment variables to add to the gateway pods
gateway.extraEnvFromlist[]Environment variables from secrets or configmaps to add to the gateway pods
gateway.extraVolumeMountslist[]Volume mounts to add to the gateway pods
gateway.extraVolumeslist[]Volumes to add to the gateway pods
gateway.image.pullPolicystring"IfNotPresent"The gateway image pull policy
gateway.image.registrystring"docker.io"The Docker registry for the gateway image
gateway.image.repositorystring"nginxinc/nginx-unprivileged"The gateway image repository
gateway.image.tagstring"1.19-alpine"The gateway image tag
gateway.ingress.annotationsobject{}Annotations for the gateway ingress
gateway.ingress.enabledboolfalseSpecifies whether an ingress for the gateway should be created
gateway.ingress.hostslist[{"host":"gateway.loki.example.com","paths":[{"path":"/"}]}]Hosts configuration for the gateway ingress
gateway.ingress.tlslist[{"hosts":["gateway.loki.example.com"],"secretName":"loki-gateway-tls"}]TLS configuration for the gateway ingress
gateway.nginxConfig.filestringSee values.yamlref: https://docs.nginx.com/nginx/admin-guide/monitoring/logging/
gateway.nginxConfig.httpSnippetstring""Allows appending custom configuration to the http block
gateway.nginxConfig.logFormatstringref: https://docs.nginx.com/nginx/admin-guide/monitoring/logging/NGINX log format
gateway.nginxConfig.serverSnippetstring""Allows appending custom configuration to the server block
gateway.nodeSelectorobject{}Node selector for gateway pods
gateway.podAnnotationsobject{}Annotations for gateway pods
gateway.podSecurityContextobjectSee: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/The SecurityContext for gateway containers
gateway.priorityClassNamestringnilThe name of the PriorityClass for gateway pods
gateway.readinessProbe.httpGet.pathstring"/"
gateway.readinessProbe.httpGet.portstring"http"
gateway.readinessProbe.initialDelaySecondsint15
gateway.readinessProbe.timeoutSecondsint1
gateway.replicasint1Number of replicas for the gateway
gateway.resourcesobject{}Resource requests and limits for the gateway
gateway.service.annotationsobject{}Annotations for the gateway service
gateway.service.clusterIPstringnilClusterIP of the gateway service
gateway.service.labelsobject{}Labels for gateway service
gateway.service.loadBalancerIPstringnilLoad balancer IPO address if service type is LoadBalancer
gateway.service.nodePortintnilNode port if service type is NodePort
gateway.service.portint80Port of the gateway service
gateway.service.typestring"ClusterIP"Type of the gateway service
gateway.terminationGracePeriodSecondsint30Grace period to allow the gateway to shutdown before it is killed
gateway.tolerationslist[]Tolerations for gateway pods
gateway.verboseLoggingbooltrueEnable logging of 2xx and 3xx HTTP requests
global.clusterDomainstring"cluster.local"configures cluster domain ("cluster.local" by default)
global.dnsNamespacestring"kube-system"configures DNS service namespace
global.dnsServicestring"kube-dns"configures DNS service name
global.image.registrystringnilOverrides the Docker registry globally for all images
global.priorityClassNamestringnilOverrides the priorityClassName for all pods
imagePullSecretslist[]Image pull secrets for Docker images
loki.auth_enabledbooltrue
loki.commonConfigobject{"path_prefix":"/var/loki","replication_factor":3}Check https://grafana.com/docs/loki/latest/configuration/#common_config for more info on how to provide a common configuration
loki.configstringSee values.yamlConfig file contents for Loki
loki.containerSecurityContextobjectSee: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/The SecurityContext for Loki containers.
loki.existingSecretForConfigstring""Specify an existing secret containing loki configuration. If non-empty, overrides loki.config
loki.extraServerConfigobject{}Extra server configurations. Check https://grafana.com/docs/loki/latest/configuration/#server for more info
loki.image.pullPolicystring"IfNotPresent"Docker image pull policy
loki.image.registrystring"docker.io"The Docker registry
loki.image.repositorystring"grafana/loki"Docker image repository
loki.image.tagstringnilOverrides the image tag whose default is the chart's appVersion
loki.memcachedobjectref: https://grafana.com/docs/loki/latest/configuration/Configure memcached as an external cache for chunk and results cache. Disabled by default must enable and specify a host for each cache you would like to use.
loki.podAnnotationsobject{}Common annotations for all pods
loki.podSecurityContextobjectSee: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/The SecurityContext for Loki pods
loki.query_schedulerobject{}Additional query scheduler config
loki.readinessProbeobjectref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probesConfigures the readiness probe for all of the Loki pods
loki.revisionHistoryLimitint10The number of old ReplicaSets to retain to allow rollback
loki.schemaConfigobject{}Check https://grafana.com/docs/loki/latest/configuration/#schema_config for more info on how to configure schemas
loki.storage.bucketNames.adminstring"admin"
loki.storage.bucketNames.chunksstring"chunks"
loki.storage.bucketNames.rulerstring"ruler"
loki.storage.gcs.chunkBufferSizeint0
loki.storage.gcs.enableHttp2booltrue
loki.storage.gcs.requestTimeoutstring"0s"
loki.storage.local.chunks_directorystring"/var/loki/chunks"
loki.storage.local.rules_directorystring"/var/loki/rules"
loki.storage.s3.accessKeyIdstringnil
loki.storage.s3.endpointstringnil
loki.storage.s3.insecureboolfalse
loki.storage.s3.regionstringnil
loki.storage.s3.s3stringnil
loki.storage.s3.s3ForcePathStyleboolfalse
loki.storage.s3.secretAccessKeystringnil
loki.storage.typestring"s3"
loki.storage_configobject{"hedging":{"at":"250ms","max_per_second":20,"up_to":3}}Additional storage config
loki.structuredConfigobject{}Structured loki configuration, takes precedence over loki.config, loki.schemaConfig, loki.storageConfig
minioobjectref: https://github.com/minio/chartsConfiguration for minio child chart
monitoring.alerts.annotationsobject{}Additional annotations for the alerts PrometheusRule resource
monitoring.alerts.enabledbooltrueIf enabled, create PrometheusRule resource with Loki alerting rules
monitoring.alerts.labelsobject{}Additional labels for the alerts PrometheusRule resource
monitoring.alerts.namespacestringnilAlternative namespace to create alerting rules PrometheusRule resource in
monitoring.dashboards.annotationsobject{}Additional annotations for the dashboards ConfigMap
monitoring.dashboards.enabledbooltrueIf enabled, create configmap with dashboards for monitoring Loki
monitoring.dashboards.labelsobject{}Additional labels for the dashboards ConfigMap
monitoring.dashboards.namespacestringnilAlternative namespace to create dashboards ConfigMap in
monitoring.rules.additionalGroupslist[]Additional groups to add to the rules file
monitoring.rules.alertingbooltrueInclude alerting rules
monitoring.rules.annotationsobject{}Additional annotations for the rules PrometheusRule resource
monitoring.rules.enabledbool

Deploy loki-simple-scalable with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has loki-simple-scalable 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 chartloki-simple-scalable is pinned at v1.8.11 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