thanos

by stevehipwell

Helm chartv1.24.3App 0.42.5Verified publisher

Helm chart to install Thanos; a set of components that can be composed into a highly available metric system with unlimited storage capacity, which can be added seamlessly on top of existing Prometheus deployments.

About this chart

thanos

Helm chart to install Thanos; a set of components that can be composed into a highly available metric system with unlimited storage capacity, which can be added seamlessly on top of existing Prometheus deployments.

Homepage: https://thanos.io/

Maintainers

NameEmailUrl
stevehipwell[email protected]

Source Code

Installing the Chart

OCI Repository

To install the chart using the recommended OCI method you can use the following command.

helm upgrade --install thanos oci://ghcr.io/stevehipwell/helm-charts/thanos --version 1.24.3

Verification

As the OCI chart release is signed by Cosign you can verify the chart before installing it by running the following command.

cosign verify --certificate-oidc-issuer https://token.actions.githubusercontent.com --certificate-identity-regexp 'https://github\.com/action-stars/helm-workflows/\.github/workflows/release\.yaml@.+' --certificate-github-workflow-repository stevehipwell/helm-charts --certificate-github-workflow-name Release ghcr.io/stevehipwell/helm-charts/thanos:1.24.3

Non-OCI Repository

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

helm repo add stevehipwell https://stevehipwell.github.io/helm-charts/
helm upgrade --install thanos stevehipwell/thanos --version 1.24.3

Values

KeyTypeDefaultDescription
additionalEndpointGroupslist[]Additional endpoint groups external to the chart to be configured with --endpoint-group, these values can be templated (EXPERIMENTAL).
additionalEndpointslist[]Additional endpoints external to the chart to be configured with --endpoint, these values can be templated.
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.
clusterDomainstring"cluster.local"Kubernetes cluster domain.
commonLabelsobject{}Labels to add to all chart resources.
compact.affinityobject{}Affinity settings for scheduling the Compact pod. If an explicit label selector is not provided for pod affinity or pod anti-affinity one will be created from the pod selector labels.
compact.automountServiceAccountTokenboolnilIf the service account token should be mounted to the Compact pod, this overrides compact.serviceAccount.automountToken.
compact.deduplication.enabledbooltrueIf true, enable deduplication via the Compact component.
compact.deduplication.funcstringnilIf specified override the default deduplication function.
compact.enabledboolfalseIf true, create the Thanos Compact component.
compact.extraArgslist[]Additional args for the Compact pod default container.
compact.extraEnvlist[]Additional environment variables for the Compact pod default container.
compact.extraVolumeMountslist[]Extra volume mounts for the Compact pod default container.
compact.extraVolumeslist[]Extra volumes for the Compact pod.
compact.httpPortint10902HTTP port for the Compact pod default container.
compact.livenessProbeobjectSee values.yamlLiveness probe configuration for the Compact pod default container.
compact.nodeSelectorobject{}Node selector labels for scheduling the Compact pod.
compact.persistence.accessModestring"ReadWriteOnce"Access mode for the Compact pod PVC.
compact.persistence.annotationsobject{}Annotations to add to the Compact pod PVC.
compact.persistence.enabledboolfalseIf true, create a PersistentVolumeClaim for the Compact pod data.
compact.persistence.labelsobject{}Labels to add to the Compact pod PVC.
compact.persistence.retainDeletedbooltrueIf true, retain the Compact PVC after the pod is deleted.
compact.persistence.retainScaledbooltrueIf true, retain the Compact PVC after the pod is scaled down.
compact.persistence.sizestring"8Gi"Size for the Compact pod PVC.
compact.persistence.storageClassstring"standard"Storage class for the Compact pod PVC.
compact.podAnnotationsobject{}Annotations to add to the Compact pod.
compact.podLabelsobject{}Labels to add to the Compact pod.
compact.podSecurityContextobjectSee values.yamlSecurity context for the Compact pod.
compact.priorityClassNamestringnilPriority class name for the Compact pod.
compact.readinessProbeobjectSee values.yamlReadiness probe configuration for the Compact pod default container.
compact.replicaDeduplicationboolfalseDEPRECATED - If true, use the penalty deduplication function optimized for HA Prometheus replicas.
compact.resourcesobject{}Resources for the Compact pod default container.
compact.securityContextobjectSee values.yamlSecurity context for the Compact pod default container.
compact.service.annotationsobject{}Annotations to add to the Compact service.
compact.service.httpPortint10902HTTP port for the Compact service.
compact.service.labelsobject{}Labels to add to the Compact service.
compact.serviceAccount.annotationsobject{}Annotations to add to the Compact service account.
compact.serviceAccount.automountTokenboolfalseAutomount API credentials for the Compact service account.
compact.serviceAccount.createbooltrueIf true, create a new ServiceAccount for the Compact component.
compact.serviceAccount.labelsobject{}Labels to add to the Compact service account.
compact.serviceAccount.namestringnilIf this is set and compact.serviceAccount.create is true this will be used for the created Compact 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 Compact component.
compact.terminationGracePeriodSecondsintnilTermination grace period for the Compact pod; in seconds.
compact.tolerationslist[]Node taints the Compact pod will tolerate for scheduling.
compact.topologySpreadConstraintslist[]Topology spread constraints for scheduling for the Compact pod. If an explicit label selector is not provided one will be created from the pod selector labels.
compact.updateStrategyobject{}Update strategy for the Compact stateful set.
fullnameOverridestringnilOverride the full name of the chart.
image.digeststringnilOptional image digest for the Thanos image.
image.pullPolicystring"IfNotPresent"Image pull policy for the Thanos image.
image.repositorystring"quay.io/thanos/thanos"Image repository for the Thanos image.
image.tagstringnilImage tag for the Thanos image; this will default to printf "v%s" .Chart.AppVersion if not set and will be omitted if set to -.
imagePullSecretslist[]Image pull secrets.
logFormatstring"logfmt"Log format for Thanos components.
logLevelstring"info"Log level for Thanos components.
nameOverridestringnilOverride the name of the chart.
objstoreConfig.createbooltrueIf true, create a Secret for the objstore store configuration.
objstoreConfig.keystring"config"Secret key for the objstore configuration.
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.additionalStoreslist[]DEPRECATED - Additional stores to configure query with (--store), these values can be templated. Use additionalEndpoints instead.
query.affinityobject{}Affinity settings for scheduling the Query pod. If an explicit label selector is not provided for pod affinity or pod anti-affinity one will be created from the pod selector labels.
query.automountServiceAccountTokenboolnilIf the service account token should be mounted to the Query pod, this overrides query.serviceAccount.automountToken.
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.enableDnsDiscoverybooltrueIf true, enable DNS service discovery.
query.enabledbooltrueIf true, create the Query 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 the Query pod default container.
query.extraVolumeslist[]Extra volumes for the Query pod.
query.grpcPortint10901GRPC port used by the Query pod default container.
query.grpcRoute.annotationsobject{}Annotations to add to the Query gRPC service GRPCRoute.
query.grpcRoute.enabledboolfalseIf true, create a GRPCRoute resource for the Query gRPC service.
query.grpcRoute.hostnameslistSee values.yamlGRPCRoute hostnames for the Query gRPC service.
query.grpcRoute.labelsobject{}Labels to add to the Query gRPC service GRPCRoute.
query.grpcRoute.parentRefslistSee values.yamlGRPCRoute parent references for the Query gRPC service.
query.grpcRoute.ruleslistSee values.yamlGRPCRoute rules for the Query gRPC service; if not set, a default rule routing all traffic to the gRPC service port will be created.
query.httpPortint10902HTTP port used by the Query pod default container.
query.httpRoute.annotationsobject{}Annotations to add to the Query service HTTPRoute.
query.httpRoute.enabledboolfalseIf true, create an HTTPRoute resource for the Query service.
query.httpRoute.hostnameslistSee values.yamlHTTPRoute hostnames for the Query service.
query.httpRoute.labelsobject{}Labels to add to the Query service HTTPRoute.
query.httpRoute.parentRefslistSee values.yamlHTTPRoute parent references for the Query service.
query.httpRoute.ruleslistSee values.yamlHTTPRoute rules for the Query service; if not set, a default rule routing all traffic to the HTTP service port will be created.
query.ingress.annotationsobject{}Annotations to add to the Query service ingress.
query.ingress.enabledboolfalseIf true, create an Ingress for the Query service.
query.ingress.grpcHostslistSee values.yamlHosts for the Query service gRPC ingress rules.
query.ingress.grpcPathstring"/"Path for the Query service gRPC ingress rules.
query.ingress.hostslistSee values.yamlHosts for the Query service ingress.
query.ingress.ingressClassNamestringnilIngress class name for the Query service ingress.
query.ingress.pathstring"/"Path for the Query service ingress.
query.ingress.tlslistSee values.yamlTLS configuration for the Query service ingress.
query.livenessProbeobjectSee values.yamlLiveness probe configuration for the Query pod default container.
query.nodeSelectorobject{}Node selector labels for scheduling the Query pod.
query.podAnnotationsobject{}Annotations to add to the Query pod.
query.podDisruptionBudget.enabledboolfalseIf true, create a PodDisruptionBudget for the Query deployment.
query.podDisruptionBudget.maxUnavailablestringnilMaximum number of Query replicas that the PDB should allow to be unavailable.
query.podDisruptionBudget.minAvailablestringnilMinimum number of Query replicas that the PDB should require to be available.
query.podDisruptionBudget.unhealthyPodEvictionPolicystringnilUnhealthy pod eviction policy for the Query PDB.
quer

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 v1.24.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