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
| Name | Url | |
|---|---|---|
| pnowy | [email protected] |
Source Code
- https://github.com/thanos-io/thanos
- https://github.com/thanos-io/kube-thanos
- https://github.com/solidcharts/helm-charts/
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
| Repository | Name | Version |
|---|---|---|
| oci://ghcr.io/solidcharts/helm-charts | shared | 0.X.X |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalEndpointGroups | list | [] | Additional endpoint groups external to the chart to be configured with --endpoint-group. |
| additionalEndpoints | list | [] | Additional endpoints external to the chart to be configured with --endpoint. |
| additionalReplicaLabels | list | [] | Additional replica labels external to the chart. |
| autoGomemlimit.enabled | bool | false | If true, enable the go runtime to automatically limit memory consumption for all Thanos components by setting GOMEMLIMIT. |
| autoGomemlimit.ratio | float | nil | The ratio of reserved GOMEMLIMIT memory to the detected maximum container or system memory. |
| bucketweb.autoscaling.enabled | bool | false | If true, create a HorizontalPodAutoscaler for the bucket web deployment. |
| bucketweb.autoscaling.maxReplicas | int | 3 | Maximum number of bucket web replicas that the HPA should create. |
| bucketweb.autoscaling.minReplicas | int | 1 | Minimum number of bucket web replicas that the HPA should maintain. |
| bucketweb.autoscaling.targetCPUUtilizationPercentage | int | 80 | Target CPU utilization percentage for the bucket web pod. |
| bucketweb.autoscaling.targetMemoryUtilizationPercentage | int | nil | Target memory utilization percentage for the bucket web pod. |
| bucketweb.containerPorts.http | int | 10902 | |
| bucketweb.enabled | bool | false | If true, create the bucket web component. |
| bucketweb.extraArgs | list | [] | Additional args for the bucket web pod default container. |
| bucketweb.extraEnv | list | [] | Additional environment variables for the bucket web pod default container. |
| bucketweb.extraVolumeMounts | list | [] | Extra volume mounts for the bucket web pod default container. |
| bucketweb.extraVolumes | list | [] | Extra volumes for the bucket web pod. |
| bucketweb.ingress.annotations | object | {} | Annotations to add to the bucket web service ingress. |
| bucketweb.ingress.enabled | bool | false | If true, create an Ingress for the bucket web service. |
| bucketweb.ingress.hosts | list | See values.yaml | Hosts for the bucket web service ingress. |
| bucketweb.ingress.ingressClassName | string | nil | Ingress class name for the bucket web service ingress. |
| bucketweb.ingress.tls | list | See values.yaml | TLS configuration for the bucket web service ingress. |
| bucketweb.initContainers | list | [] | Optional init containers for the bucket web pod. |
| bucketweb.livenessProbe | object | See values.yaml | Liveness probe configuration for the bucket web pod default container. |
| bucketweb.nameOverride | string | nil | If set, overrides the name of the component and labels. |
| bucketweb.pdb.enabled | bool | false | If true, create a PodDisruptionBudget for the bucket web deployment. |
| bucketweb.pdb.maxUnavailable | string | nil | Maximum number of bucket web replicas that the PDB should allow to be unavailable. |
| bucketweb.pdb.minAvailable | string | nil | Minimum number of bucket web replicas that the PDB should require to be available. |
| bucketweb.pdb.unhealthyPodEvictionPolicy | string | nil | Unhealthy pod eviction policy for the bucket web PDB. |
| bucketweb.podAnnotations | object | {} | Annotations to add to the bucket web pod. |
| bucketweb.podLabels | object | {} | Labels to add to the bucket web pod. |
| bucketweb.podSecurityContext | object | See values.yaml | Security context for the bucket web pod. |
| bucketweb.priorityClassName | string | nil | Priority class name for the bucket web pod. |
| bucketweb.readinessProbe | object | See values.yaml | Readiness probe configuration for the bucket web pod default container. |
| bucketweb.refresh | string | "30m" | Refresh interval to download metadata from remote storage |
| bucketweb.replicas | int | 1 | Number of bucket web replicas to create. |
| bucketweb.resources | object | {} | Resources for the bucket web pod default container. |
| bucketweb.securityContext | object | See values.yaml | Security context for the bucket web pod default container. |
| bucketweb.service.annotations | object | {} | Annotations to add to the service. |
| bucketweb.service.ports | int | {"http":10902} | Port for the service. |
| bucketweb.service.trafficDistribution | string | nil | Traffic distribution for service. |
| bucketweb.service.type | string | "ClusterIP" | Service type for the service. |
| bucketweb.serviceAccount.annotations | object | {} | Annotations to add to the bucket web service account. |
| bucketweb.serviceAccount.automountToken | bool | false | Automount API credentials for the bucket web service account. |
| bucketweb.serviceAccount.create | bool | true | If true, create a new ServiceAccount for the component. |
| bucketweb.serviceAccount.labels | object | {} | Labels to add to the bucket web service account. |
| bucketweb.serviceAccount.name | string | nil | If 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.terminationGracePeriodSeconds | int | nil | Termination grace period for the bucket web pod; in seconds. |
| bucketweb.timeout | string | "5m" | Timeout to download metadata from remote storage |
| bucketweb.updateStrategy | object | {} | Update strategy for the bucket web deployment. |
| clusterDomain | string | "cluster.local" | Kubernetes cluster domain. |
| compactor.containerPorts.http | int | 10902 | |
| compactor.deduplication.enabled | bool | true | If true, enable deduplication via the compactor component. |
| compactor.deduplication.func | string | nil | If specified override the default deduplication function. |
| compactor.enabled | bool | false | If true, create component. |
| compactor.extraArgs | list | [] | Additional args for the compactor pod default container. |
| compactor.extraEnv | list | [] | Additional environment variables for the compactor pod default container. |
| compactor.extraVolumeMounts | list | [] | Extra volume mounts for the compactor pod default container. |
| compactor.extraVolumes | list | [] | Extra volumes for the compactor pod. |
| compactor.initContainers | list | [] | Optional init containers for the compactor pod. |
| compactor.livenessProbe | object | See values.yaml | Liveness probe configuration for the compactor pod default container. |
| compactor.nameOverride | string | nil | If set, overrides the name of the component and labels. |
| compactor.persistence.accessMode | string | "ReadWriteOnce" | Access mode for the compactor pod PVC. |
| compactor.persistence.annotations | object | {} | Annotations to add to the compactor pod PVC. |
| compactor.persistence.enabled | bool | false | If true, create a PersistentVolumeClaim for the compactor pod data. |
| compactor.persistence.retainDeleted | bool | true | If true, retain the compactor PVC after the pod is deleted. |
| compactor.persistence.retainScaled | bool | true | If true, retain the compactor PVC after the pod is scaled down. |
| compactor.persistence.size | string | "8Gi" | Size for the compactor pod PVC. |
| compactor.persistence.storageClass | string | "" | Storage class for the pod PVC. |
| compactor.podAnnotations | object | {} | Annotations to add to the compactor pod. |
| compactor.podLabels | object | {} | Labels to add to the compactor pod. |
| compactor.podSecurityContext | object | See values.yaml | Security context for the compactor pod. |
| compactor.priorityClassName | string | nil | Priority class name for the compactor pod. |
| compactor.readinessProbe | object | See values.yaml | Readiness probe configuration for the compactor pod default container. |
| compactor.resources | object | {} | Resources for the compactor pod default container. |
| compactor.securityContext | object | See values.yaml | Security context for the compactor pod default container. |
| compactor.service.annotations | object | {} | Annotations to add to the compactor service. |
| compactor.service.ports | object | {"http":10902} | Service ports |
| compactor.serviceAccount.annotations | object | {} | Annotations to add to the compactor service account. |
| compactor.serviceAccount.automountToken | bool | false | Automount API credentials for the compactor service account. |
| compactor.serviceAccount.create | bool | true | If true, create a new ServiceAccount for the compactor component. |
| compactor.serviceAccount.labels | object | {} | Labels to add to the compactor service account. |
| compactor.serviceAccount.name | string | nil | If 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.terminationGracePeriodSeconds | int | nil | Termination grace period for the compactor pod; in seconds. |
| compactor.updateStrategy | object | {} | Update strategy for the compactor stateful set. |
| components.affinity | object | {} | Affinity settings for scheduling the all components. |
| components.nodeSelector | object | {} | Node selector labels for scheduling for all components. |
| components.tolerations | list | [] | Node taints the query pod will tolerate for scheduling for all components. |
| components.topologySpreadConstraints | list | [] | Topology spread constraints for scheduling for all components. |
| extraObjects | list | [] | |
| fullnameOverride | string | nil | |
| global.imageRegistry | string | "" | |
| image.digest | string | nil | Set image digest |
| image.pullPolicy | string | "IfNotPresent" | Pull policy for images. |
| image.registry | string | "quay.io" | Image registry |
| image.repository | string | "thanos/thanos" | Image repository |
| image.tag | string | "v0.42.5" | Image tag version (if not specified, it will use the chart appVersion) |
| imagePullSecrets | list | [] | |
| logFormat | string | "logfmt" | Log format for Thanos components. |
| logLevel | string | "info" | Log level for Thanos components. |
| nameOverride | string | nil | |
| objstoreConfig.annotations | object | {} | Annotations to add to the objstore secret, if it is created. |
| objstoreConfig.create | bool | true | If true, create a Secret for the objstore store configuration. |
| objstoreConfig.key | string | "config" | Secret key for the objstore configuration. |
| objstoreConfig.mountPath | string | "/etc/thanos/objstore.yaml" | Mount path for the objstore configuration file. |
| objstoreConfig.name | string | nil | If 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.value | string | "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.enabled | bool | false | If true, create a HorizontalPodAutoscaler for the query deployment. |
| query.autoscaling.maxReplicas | int | 3 | Maximum number of query replicas that the HPA should create. |
| query.autoscaling.minReplicas | int | 1 | Minimum number of query replicas that the HPA should maintain. |
| query.autoscaling.targetCPUUtilizationPercentage | int | 80 | Target CPU utilisation percentage for the query pod. |
| query.autoscaling.targetMemoryUtilizationPercentage | int | nil | Target memory utilisation percentage for the query pod. |
| query.containerPorts.grpc | int | 10901 | |
| query.containerPorts.http | int | 10902 | |
| query.enableDnsDiscovery | bool | true | Enable DNS service discovery. |
| query.enabled | bool | true | If true, create component. |
| query.extraArgs | list | [] | Additional args for the query pod default container. |
| query.extraEnv | list | [] | Additional environment variables for the query pod default container. |
| query.extraVolumeMounts | list | [] | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartthanos is pinned at v0.12.3 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