Skip to content

Commit

Permalink
Merge pull request #3431 from zalegrala/tempoDistributedMemcachedExtr…
Browse files Browse the repository at this point in the history
…aVolumes

[tempo-distributed] allow extra memcached configurations
  • Loading branch information
zanhsieh authored Nov 16, 2024
2 parents d822475 + ed44285 commit aa5f262
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/tempo-distributed/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: tempo-distributed
description: Grafana Tempo in MicroService mode
type: application
version: 1.22.0
version: 1.22.1
appVersion: 2.6.0
engine: gotpl
home: https://grafana.com/docs/tempo/latest/
Expand Down
5 changes: 4 additions & 1 deletion charts/tempo-distributed/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tempo-distributed

![Version: 1.22.0](https://img.shields.io/badge/Version-1.22.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.0](https://img.shields.io/badge/AppVersion-2.6.0-informational?style=flat-square)
![Version: 1.22.1](https://img.shields.io/badge/Version-1.22.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.0](https://img.shields.io/badge/AppVersion-2.6.0-informational?style=flat-square)

Grafana Tempo in MicroService mode

Expand Down Expand Up @@ -580,6 +580,8 @@ The memcached default args are removed and should be provided manually. The sett
| memcached.extraArgs | list | `[]` | Additional CLI args for memcached |
| memcached.extraEnv | list | `[]` | Environment variables to add to memcached pods |
| memcached.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to memcached pods |
| memcached.extraVolumeMounts | list | `[]` | Extra volumes for memcached pods |
| memcached.extraVolumes | list | `[]` | Extra volumes for memcached statefulSet |
| memcached.host | string | `"memcached"` | |
| memcached.image.pullPolicy | string | `"IfNotPresent"` | Memcached Docker image pull policy |
| memcached.image.pullSecrets | list | `[]` | Optional list of imagePullSecrets. Overrides `global.image.pullSecrets` |
Expand All @@ -595,6 +597,7 @@ The memcached default args are removed and should be provided manually. The sett
| memcached.tolerations | list | `[]` | Toleration for memcached pods |
| memcached.topologySpreadConstraints | string | Defaults to allow skew no more then 1 node per AZ | topologySpread for memcached pods. Passed through `tpl` and, thus, to be configured as string |
| memcachedExporter.enabled | bool | `false` | Specifies whether the Memcached Exporter should be enabled |
| memcachedExporter.extraArgs | list | `[]` | Additional CLI args for the memcached exporter |
| memcachedExporter.hostAliases | list | `[]` | hostAliases to add |
| memcachedExporter.image.pullPolicy | string | `"IfNotPresent"` | Memcached Exporter Docker image pull policy |
| memcachedExporter.image.pullSecrets | list | `[]` | Optional list of imagePullSecrets. Overrides `global.image.pullSecrets` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,17 @@ spec:
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.memcached.extraVolumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.memcachedExporter.enabled }}
- args:
- --memcached.address=localhost:11211
- --web.listen-address=0.0.0.0:9150
{{- with .Values.memcachedExporter.extraArgs }}
{{- toYaml . | nindent 12 }}
{{- end }}
image: {{ include "tempo.imageReference" (dict "ctx" . "component" "memcached-exporter") }}
imagePullPolicy: {{ .Values.memcachedExporter.image.pullPolicy }}
name: exporter
Expand All @@ -98,6 +105,10 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.memcached.extraVolumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if semverCompare ">= 1.19-0" .Capabilities.KubeVersion.Version }}
{{- with .Values.memcached.topologySpreadConstraints }}
topologySpreadConstraints:
Expand All @@ -116,6 +127,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.memcached.extraVolumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
updateStrategy:
type: RollingUpdate
{{- end}}
8 changes: 6 additions & 2 deletions charts/tempo-distributed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1568,10 +1568,13 @@ memcached:
topologyKey: topology.kubernetes.io/zone
# -- Pod Disruption Budget maxUnavailable
maxUnavailable: 1
# -- Extra volumes for memcached pods
extraVolumeMounts: []
# -- Extra volumes for memcached statefulSet
extraVolumes: []
service:
# -- Annotations for memcached service
annotations: {}

memcachedExporter:
# -- Specifies whether the Memcached Exporter should be enabled
enabled: false
Expand All @@ -1593,7 +1596,8 @@ memcachedExporter:
pullPolicy: IfNotPresent
# -- Memcached Exporter resource requests and limits
resources: {}

# -- Additional CLI args for the memcached exporter
extraArgs: []
metaMonitoring:
# ServiceMonitor configuration
serviceMonitor:
Expand Down

0 comments on commit aa5f262

Please sign in to comment.