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
| Repository | Name | Version |
|---|---|---|
| https://grafana.github.io/helm-charts | grafana-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
| Key | Type | Default | Description |
|---|---|---|---|
| enterprise.adminApi | object | {"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.config | string | ref: https://grafana.com/docs/loki/latest/configuration/examples/ | Enterprise specific sections of the config.yaml file |
| enterprise.enabled | bool | false | |
| enterprise.externalLicenseName | string | nil | Name of external licesne secret to use |
| enterprise.image.pullPolicy | string | "IfNotPresent" | Docker image pull policy |
| enterprise.image.registry | string | "docker.io" | The Docker registry |
| enterprise.image.repository | string | "grafana/enterprise-logs" | Docker image repository |
| enterprise.image.tag | string | "v1.4.0" | Overrides the image tag whose default is the chart's appVersion |
| enterprise.license.contents | string | "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.adminTokenSecret | string | "gel-admin-token" | Name of the secret to store the admin token in |
| enterprise.tokengen.annotations | object | {} | Additional annotations for the tokengen Job |
| enterprise.tokengen.enabled | bool | true | Whether the job should be part of the deployment |
| enterprise.tokengen.env | list | [] | Additional Kubernetes environment |
| enterprise.tokengen.extraArgs | list | [] | Additional CLI arguments for the tokengen target |
| enterprise.tokengen.extraVolumeMounts | list | [] | Additional volume mounts for Pods |
| enterprise.tokengen.extraVolumes | list | [] | Additional volumes for Pods |
| enterprise.tokengen.image | string | "bitnami/kubectl" | Job Create Secret Stage Image to Utilize |
| enterprise.tokengen.labels | object | {} | Additional labels for the tokengen Job |
| enterprise.tokengen.securityContext | object | See: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | Run containers as user enterprise-logs(uid=10001) |
| enterprise.useExternalLicense | bool | false | Set to true when providing an external license |
| enterprise.version | string | "v1.5.1" | |
| fullnameOverride | string | nil | Overrides the chart's computed fullname |
| gateway.affinity | string | Hard node and soft zone anti-affinity | Affinity for gateway pods. Passed through tpl and, thus, to be configured as string |
| gateway.autoscaling.enabled | bool | false | Enable autoscaling for the gateway |
| gateway.autoscaling.maxReplicas | int | 3 | Maximum autoscaling replicas for the gateway |
| gateway.autoscaling.minReplicas | int | 1 | Minimum autoscaling replicas for the gateway |
| gateway.autoscaling.targetCPUUtilizationPercentage | int | 60 | Target CPU utilisation percentage for the gateway |
| gateway.autoscaling.targetMemoryUtilizationPercentage | string | nil | Target memory utilisation percentage for the gateway |
| gateway.basicAuth.enabled | bool | false | Enables basic authentication for the gateway |
| gateway.basicAuth.existingSecret | string | nil | Existing basic auth secret to use. Must contain '.htpasswd' |
| gateway.basicAuth.htpasswd | string | See values.yaml | Uses 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.password | string | nil | The basic auth password for the gateway |
| gateway.basicAuth.username | string | nil | The basic auth username for the gateway |
| gateway.containerSecurityContext | object | See: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | The SecurityContext for gateway containers |
| gateway.deploymentStrategy | object | ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy | See kubectl explain deployment.spec.strategy for more |
| gateway.enabled | bool | true | Specifies whether the gateway should be enabled |
| gateway.extraArgs | list | [] | Additional CLI args for the gateway |
| gateway.extraEnv | list | [] | Environment variables to add to the gateway pods |
| gateway.extraEnvFrom | list | [] | Environment variables from secrets or configmaps to add to the gateway pods |
| gateway.extraVolumeMounts | list | [] | Volume mounts to add to the gateway pods |
| gateway.extraVolumes | list | [] | Volumes to add to the gateway pods |
| gateway.image.pullPolicy | string | "IfNotPresent" | The gateway image pull policy |
| gateway.image.registry | string | "docker.io" | The Docker registry for the gateway image |
| gateway.image.repository | string | "nginxinc/nginx-unprivileged" | The gateway image repository |
| gateway.image.tag | string | "1.19-alpine" | The gateway image tag |
| gateway.ingress.annotations | object | {} | Annotations for the gateway ingress |
| gateway.ingress.enabled | bool | false | Specifies whether an ingress for the gateway should be created |
| gateway.ingress.hosts | list | [{"host":"gateway.loki.example.com","paths":[{"path":"/"}]}] | Hosts configuration for the gateway ingress |
| gateway.ingress.tls | list | [{"hosts":["gateway.loki.example.com"],"secretName":"loki-gateway-tls"}] | TLS configuration for the gateway ingress |
| gateway.nginxConfig.file | string | See values.yaml | ref: https://docs.nginx.com/nginx/admin-guide/monitoring/logging/ |
| gateway.nginxConfig.httpSnippet | string | "" | Allows appending custom configuration to the http block |
| gateway.nginxConfig.logFormat | string | ref: https://docs.nginx.com/nginx/admin-guide/monitoring/logging/ | NGINX log format |
| gateway.nginxConfig.serverSnippet | string | "" | Allows appending custom configuration to the server block |
| gateway.nodeSelector | object | {} | Node selector for gateway pods |
| gateway.podAnnotations | object | {} | Annotations for gateway pods |
| gateway.podSecurityContext | object | See: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | The SecurityContext for gateway containers |
| gateway.priorityClassName | string | nil | The name of the PriorityClass for gateway pods |
| gateway.readinessProbe.httpGet.path | string | "/" | |
| gateway.readinessProbe.httpGet.port | string | "http" | |
| gateway.readinessProbe.initialDelaySeconds | int | 15 | |
| gateway.readinessProbe.timeoutSeconds | int | 1 | |
| gateway.replicas | int | 1 | Number of replicas for the gateway |
| gateway.resources | object | {} | Resource requests and limits for the gateway |
| gateway.service.annotations | object | {} | Annotations for the gateway service |
| gateway.service.clusterIP | string | nil | ClusterIP of the gateway service |
| gateway.service.labels | object | {} | Labels for gateway service |
| gateway.service.loadBalancerIP | string | nil | Load balancer IPO address if service type is LoadBalancer |
| gateway.service.nodePort | int | nil | Node port if service type is NodePort |
| gateway.service.port | int | 80 | Port of the gateway service |
| gateway.service.type | string | "ClusterIP" | Type of the gateway service |
| gateway.terminationGracePeriodSeconds | int | 30 | Grace period to allow the gateway to shutdown before it is killed |
| gateway.tolerations | list | [] | Tolerations for gateway pods |
| gateway.verboseLogging | bool | true | Enable logging of 2xx and 3xx HTTP requests |
| global.clusterDomain | string | "cluster.local" | configures cluster domain ("cluster.local" by default) |
| global.dnsNamespace | string | "kube-system" | configures DNS service namespace |
| global.dnsService | string | "kube-dns" | configures DNS service name |
| global.image.registry | string | nil | Overrides the Docker registry globally for all images |
| global.priorityClassName | string | nil | Overrides the priorityClassName for all pods |
| imagePullSecrets | list | [] | Image pull secrets for Docker images |
| loki.auth_enabled | bool | true | |
| loki.commonConfig | object | {"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.config | string | See values.yaml | Config file contents for Loki |
| loki.containerSecurityContext | object | See: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | The SecurityContext for Loki containers. |
| loki.existingSecretForConfig | string | "" | Specify an existing secret containing loki configuration. If non-empty, overrides loki.config |
| loki.extraServerConfig | object | {} | Extra server configurations. Check https://grafana.com/docs/loki/latest/configuration/#server for more info |
| loki.image.pullPolicy | string | "IfNotPresent" | Docker image pull policy |
| loki.image.registry | string | "docker.io" | The Docker registry |
| loki.image.repository | string | "grafana/loki" | Docker image repository |
| loki.image.tag | string | nil | Overrides the image tag whose default is the chart's appVersion |
| loki.memcached | object | ref: 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.podAnnotations | object | {} | Common annotations for all pods |
| loki.podSecurityContext | object | See: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | The SecurityContext for Loki pods |
| loki.query_scheduler | object | {} | Additional query scheduler config |
| loki.readinessProbe | object | ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes | Configures the readiness probe for all of the Loki pods |
| loki.revisionHistoryLimit | int | 10 | The number of old ReplicaSets to retain to allow rollback |
| loki.schemaConfig | object | {} | Check https://grafana.com/docs/loki/latest/configuration/#schema_config for more info on how to configure schemas |
| loki.storage.bucketNames.admin | string | "admin" | |
| loki.storage.bucketNames.chunks | string | "chunks" | |
| loki.storage.bucketNames.ruler | string | "ruler" | |
| loki.storage.gcs.chunkBufferSize | int | 0 | |
| loki.storage.gcs.enableHttp2 | bool | true | |
| loki.storage.gcs.requestTimeout | string | "0s" | |
| loki.storage.local.chunks_directory | string | "/var/loki/chunks" | |
| loki.storage.local.rules_directory | string | "/var/loki/rules" | |
| loki.storage.s3.accessKeyId | string | nil | |
| loki.storage.s3.endpoint | string | nil | |
| loki.storage.s3.insecure | bool | false | |
| loki.storage.s3.region | string | nil | |
| loki.storage.s3.s3 | string | nil | |
| loki.storage.s3.s3ForcePathStyle | bool | false | |
| loki.storage.s3.secretAccessKey | string | nil | |
| loki.storage.type | string | "s3" | |
| loki.storage_config | object | {"hedging":{"at":"250ms","max_per_second":20,"up_to":3}} | Additional storage config |
| loki.structuredConfig | object | {} | Structured loki configuration, takes precedence over loki.config, loki.schemaConfig, loki.storageConfig |
| minio | object | ref: https://github.com/minio/charts | Configuration for minio child chart |
| monitoring.alerts.annotations | object | {} | Additional annotations for the alerts PrometheusRule resource |
| monitoring.alerts.enabled | bool | true | If enabled, create PrometheusRule resource with Loki alerting rules |
| monitoring.alerts.labels | object | {} | Additional labels for the alerts PrometheusRule resource |
| monitoring.alerts.namespace | string | nil | Alternative namespace to create alerting rules PrometheusRule resource in |
| monitoring.dashboards.annotations | object | {} | Additional annotations for the dashboards ConfigMap |
| monitoring.dashboards.enabled | bool | true | If enabled, create configmap with dashboards for monitoring Loki |
| monitoring.dashboards.labels | object | {} | Additional labels for the dashboards ConfigMap |
| monitoring.dashboards.namespace | string | nil | Alternative namespace to create dashboards ConfigMap in |
| monitoring.rules.additionalGroups | list | [] | Additional groups to add to the rules file |
| monitoring.rules.alerting | bool | true | Include alerting rules |
| monitoring.rules.annotations | object | {} | Additional annotations for the rules PrometheusRule resource |
| monitoring.rules.enabled | bool |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartloki-simple-scalable is pinned at v1.8.11 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