thanos

by SolidCharts

Helm chartv0.12.3App v0.42.5Verified publisher

Thanos Helm chart for Kubernetes.

About this chart

thanos

Description

This chart is a replacement for Bitnami Thanos chart.

Homepage: https://thanos.io/

Maintainers

NameEmailUrl
pnowy[email protected]

Source Code

Installing the Chart

OCI Repository

To install the chart you can use the following command:

helm upgrade --install thanos oci://ghcr.io/solidcharts/helm-charts/thanos --version 0.12.3

Non-OCI Repository

Alternatively, you can use the legacy non-OCI method via the following commands:

helm repo add solidcharts https://solidcharts.github.io/helm-charts/
helm repo update
helm upgrade --install thanos solidcharts/thanos --version 0.12.3

Requirements

RepositoryNameVersion
oci://ghcr.io/solidcharts/helm-chartsshared0.X.X

Values

KeyTypeDefaultDescription
additionalEndpointGroupslist[]Additional endpoint groups external to the chart to be configured with --endpoint-group.
additionalEndpointslist[]Additional endpoints external to the chart to be configured with --endpoint.
additionalReplicaLabelslist[]Additional replica labels external to the chart.
autoGomemlimit.enabledboolfalseIf true, enable the go runtime to automatically limit memory consumption for all Thanos components by setting GOMEMLIMIT.
autoGomemlimit.ratiofloatnilThe ratio of reserved GOMEMLIMIT memory to the detected maximum container or system memory.
bucketweb.autoscaling.enabledboolfalseIf true, create a HorizontalPodAutoscaler for the bucket web deployment.
bucketweb.autoscaling.maxReplicasint3Maximum number of bucket web replicas that the HPA should create.
bucketweb.autoscaling.minReplicasint1Minimum number of bucket web replicas that the HPA should maintain.
bucketweb.autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization percentage for the bucket web pod.
bucketweb.autoscaling.targetMemoryUtilizationPercentageintnilTarget memory utilization percentage for the bucket web pod.
bucketweb.containerPorts.httpint10902
bucketweb.enabledboolfalseIf true, create the bucket web component.
bucketweb.extraArgslist[]Additional args for the bucket web pod default container.
bucketweb.extraEnvlist[]Additional environment variables for the bucket web pod default container.
bucketweb.extraVolumeMountslist[]Extra volume mounts for the bucket web pod default container.
bucketweb.extraVolumeslist[]Extra volumes for the bucket web pod.
bucketweb.ingress.annotationsobject{}Annotations to add to the bucket web service ingress.
bucketweb.ingress.enabledboolfalseIf true, create an Ingress for the bucket web service.
bucketweb.ingress.hostslistSee values.yamlHosts for the bucket web service ingress.
bucketweb.ingress.ingressClassNamestringnilIngress class name for the bucket web service ingress.
bucketweb.ingress.tlslistSee values.yamlTLS configuration for the bucket web service ingress.
bucketweb.initContainerslist[]Optional init containers for the bucket web pod.
bucketweb.livenessProbeobjectSee values.yamlLiveness probe configuration for the bucket web pod default container.
bucketweb.nameOverridestringnilIf set, overrides the name of the component and labels.
bucketweb.pdb.enabledboolfalseIf true, create a PodDisruptionBudget for the bucket web deployment.
bucketweb.pdb.maxUnavailablestringnilMaximum number of bucket web replicas that the PDB should allow to be unavailable.
bucketweb.pdb.minAvailablestringnilMinimum number of bucket web replicas that the PDB should require to be available.
bucketweb.pdb.unhealthyPodEvictionPolicystringnilUnhealthy pod eviction policy for the bucket web PDB.
bucketweb.podAnnotationsobject{}Annotations to add to the bucket web pod.
bucketweb.podLabelsobject{}Labels to add to the bucket web pod.
bucketweb.podSecurityContextobjectSee values.yamlSecurity context for the bucket web pod.
bucketweb.priorityClassNamestringnilPriority class name for the bucket web pod.
bucketweb.readinessProbeobjectSee values.yamlReadiness probe configuration for the bucket web pod default container.
bucketweb.refreshstring"30m"Refresh interval to download metadata from remote storage
bucketweb.replicasint1Number of bucket web replicas to create.
bucketweb.resourcesobject{}Resources for the bucket web pod default container.
bucketweb.securityContextobjectSee values.yamlSecurity context for the bucket web pod default container.
bucketweb.service.annotationsobject{}Annotations to add to the service.
bucketweb.service.portsint{"http":10902}Port for the service.
bucketweb.service.trafficDistributionstringnilTraffic distribution for service.
bucketweb.service.typestring"ClusterIP"Service type for the service.
bucketweb.serviceAccount.annotationsobject{}Annotations to add to the bucket web service account.
bucketweb.serviceAccount.automountTokenboolfalseAutomount API credentials for the bucket web service account.
bucketweb.serviceAccount.createbooltrueIf true, create a new ServiceAccount for the component.
bucketweb.serviceAccount.labelsobject{}Labels to add to the bucket web service account.
bucketweb.serviceAccount.namestringnilIf this is set and bucketweb.serviceAccount.create is true this will be used for the created bucket web component service account name, if this is set and bucketweb.serviceAccount.create is false then this will define an existing service account to use for the bucket web component.
bucketweb.terminationGracePeriodSecondsintnilTermination grace period for the bucket web pod; in seconds.
bucketweb.timeoutstring"5m"Timeout to download metadata from remote storage
bucketweb.updateStrategyobject{}Update strategy for the bucket web deployment.
clusterDomainstring"cluster.local"Kubernetes cluster domain.
compactor.containerPorts.httpint10902
compactor.deduplication.enabledbooltrueIf true, enable deduplication via the compactor component.
compactor.deduplication.funcstringnilIf specified override the default deduplication function.
compactor.enabledboolfalseIf true, create component.
compactor.extraArgslist[]Additional args for the compactor pod default container.
compactor.extraEnvlist[]Additional environment variables for the compactor pod default container.
compactor.extraVolumeMountslist[]Extra volume mounts for the compactor pod default container.
compactor.extraVolumeslist[]Extra volumes for the compactor pod.
compactor.initContainerslist[]Optional init containers for the compactor pod.
compactor.livenessProbeobjectSee values.yamlLiveness probe configuration for the compactor pod default container.
compactor.nameOverridestringnilIf set, overrides the name of the component and labels.
compactor.persistence.accessModestring"ReadWriteOnce"Access mode for the compactor pod PVC.
compactor.persistence.annotationsobject{}Annotations to add to the compactor pod PVC.
compactor.persistence.enabledboolfalseIf true, create a PersistentVolumeClaim for the compactor pod data.
compactor.persistence.retainDeletedbooltrueIf true, retain the compactor PVC after the pod is deleted.
compactor.persistence.retainScaledbooltrueIf true, retain the compactor PVC after the pod is scaled down.
compactor.persistence.sizestring"8Gi"Size for the compactor pod PVC.
compactor.persistence.storageClassstring""Storage class for the pod PVC.
compactor.podAnnotationsobject{}Annotations to add to the compactor pod.
compactor.podLabelsobject{}Labels to add to the compactor pod.
compactor.podSecurityContextobjectSee values.yamlSecurity context for the compactor pod.
compactor.priorityClassNamestringnilPriority class name for the compactor pod.
compactor.readinessProbeobjectSee values.yamlReadiness probe configuration for the compactor pod default container.
compactor.resourcesobject{}Resources for the compactor pod default container.
compactor.securityContextobjectSee values.yamlSecurity context for the compactor pod default container.
compactor.service.annotationsobject{}Annotations to add to the compactor service.
compactor.service.portsobject{"http":10902}Service ports
compactor.serviceAccount.annotationsobject{}Annotations to add to the compactor service account.
compactor.serviceAccount.automountTokenboolfalseAutomount API credentials for the compactor service account.
compactor.serviceAccount.createbooltrueIf true, create a new ServiceAccount for the compactor component.
compactor.serviceAccount.labelsobject{}Labels to add to the compactor service account.
compactor.serviceAccount.namestringnilIf this is set and compact.serviceAccount.create is true this will be used for the created compactor component service account name, if this is set and compact.serviceAccount.create is false then this will define an existing service account to use for the compactor component.
compactor.terminationGracePeriodSecondsintnilTermination grace period for the compactor pod; in seconds.
compactor.updateStrategyobject{}Update strategy for the compactor stateful set.
components.affinityobject{}Affinity settings for scheduling the all components.
components.nodeSelectorobject{}Node selector labels for scheduling for all components.
components.tolerationslist[]Node taints the query pod will tolerate for scheduling for all components.
components.topologySpreadConstraintslist[]Topology spread constraints for scheduling for all components.
extraObjectslist[]
fullnameOverridestringnil
global.imageRegistrystring""
image.digeststringnilSet image digest
image.pullPolicystring"IfNotPresent"Pull policy for images.
image.registrystring"quay.io"Image registry
image.repositorystring"thanos/thanos"Image repository
image.tagstring"v0.42.5"Image tag version (if not specified, it will use the chart appVersion)
imagePullSecretslist[]
logFormatstring"logfmt"Log format for Thanos components.
logLevelstring"info"Log level for Thanos components.
nameOverridestringnil
objstoreConfig.annotationsobject{}Annotations to add to the objstore secret, if it is created.
objstoreConfig.createbooltrueIf true, create a Secret for the objstore store configuration.
objstoreConfig.keystring"config"Secret key for the objstore configuration.
objstoreConfig.mountPathstring"/etc/thanos/objstore.yaml"Mount path for the objstore configuration file.
objstoreConfig.namestringnilIf this is set and objstoreConfig.create is true this will be used for the created secret name, if this is set and objstoreConfig.create is false then this will define an existing secret to use.
objstoreConfig.valuestring"type: FILESYSTEM\nconfig:\n directory: /var/thanos/store/s3"Objstore configuration; this can either be a string or a map. The default values are not suitable for production.
query.autoscaling.enabledboolfalseIf true, create a HorizontalPodAutoscaler for the query deployment.
query.autoscaling.maxReplicasint3Maximum number of query replicas that the HPA should create.
query.autoscaling.minReplicasint1Minimum number of query replicas that the HPA should maintain.
query.autoscaling.targetCPUUtilizationPercentageint80Target CPU utilisation percentage for the query pod.
query.autoscaling.targetMemoryUtilizationPercentageintnilTarget memory utilisation percentage for the query pod.
query.containerPorts.grpcint10901
query.containerPorts.httpint10902
query.enableDnsDiscoverybooltrueEnable DNS service discovery.
query.enabledbooltrueIf true, create component.
query.extraArgslist[]Additional args for the query pod default container.
query.extraEnvlist[]Additional environment variables for the query pod default container.
query.extraVolumeMountslist[]Extra volume mounts for

Deploy thanos with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has thanos 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 chartthanos is pinned at v0.12.3 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