Skip to content

Commit

Permalink
tempo-distributed: Add config option for revision history limit
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kutlak <[email protected]>
  • Loading branch information
mkutlak committed Jan 16, 2025
1 parent dfeecb9 commit c8a6c52
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions charts/tempo-distributed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@ The memcached default args are removed and should be provided manually. The sett
| tempo.readinessProbe.httpGet.port | string | `"http-metrics"` | |
| tempo.readinessProbe.initialDelaySeconds | int | `30` | |
| tempo.readinessProbe.timeoutSeconds | int | `1` | |
| tempo.revisionHistoryLimit | int | `10` | The number of old ReplicaSets to retain to allow rollback |
| tempo.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":1000,"runAsNonRoot":true,"runAsUser":1000}` | SecurityContext holds container-level security attributes and common container settings |
| tempo.service.ipFamilies | list | `["IPv4"]` | Configure the IP families for all tempo services See the Service spec for details: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#servicespec-v1-core |
| tempo.service.ipFamilyPolicy | string | `"SingleStack"` | Configure the IP family policy for all tempo services. SingleStack, PreferDualStack or RequireDualStack |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
spec:
minReadySeconds: 10
replicas: {{ .Values.compactor.replicas }}
revisionHistoryLimit: 10
revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }}
selector:
matchLabels:
{{- include "tempo.selectorLabels" $dict | nindent 6 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
{{- if not .Values.distributor.autoscaling.enabled }}
replicas: {{ .Values.distributor.replicas }}
{{- end }}
revisionHistoryLimit: 10
revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }}
selector:
matchLabels:
{{- include "tempo.selectorLabels" $dict | nindent 6 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
{{- if not .Values.enterpriseFederationFrontend.autoscaling.enabled }}
replicas: {{ .Values.enterpriseFederationFrontend.replicas }}
{{- end }}
revisionHistoryLimit: 10
revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }}
selector:
matchLabels:
{{- include "tempo.selectorLabels" $dict | nindent 6 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
{{- if not .Values.gateway.autoscaling.enabled }}
replicas: {{ .Values.gateway.replicas }}
{{- end }}
revisionHistoryLimit: 10
revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }}
selector:
matchLabels:
{{- include "tempo.selectorLabels" $dict | nindent 6 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
spec:
minReadySeconds: 10
replicas: {{ .Values.metricsGenerator.replicas }}
revisionHistoryLimit: 10
revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }}
selector:
matchLabels:
{{- include "tempo.selectorLabels" $dict | nindent 6 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
spec:
minReadySeconds: 10
replicas: {{ .Values.metricsGenerator.replicas }}
revisionHistoryLimit: 10
revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }}
podManagementPolicy: Parallel
updateStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
{{- if not .Values.querier.autoscaling.enabled }}
replicas: {{ .Values.querier.replicas }}
{{- end }}
revisionHistoryLimit: 10
revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }}
selector:
matchLabels:
{{- include "tempo.selectorLabels" $dict | nindent 6 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
{{- if not .Values.queryFrontend.autoscaling.enabled }}
replicas: {{ .Values.queryFrontend.replicas }}
{{- end }}
revisionHistoryLimit: 10
revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }}
selector:
matchLabels:
{{- include "tempo.selectorLabels" $dict | nindent 6 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/tempo-distributed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ tempo:
podLabels: {}
# -- Common annotations for all pods
podAnnotations: {}
# -- The number of old ReplicaSets to retain to allow rollback
revisionHistoryLimit: 10
# -- SecurityContext holds container-level security attributes and common container settings
securityContext:
runAsNonRoot: true
Expand Down

0 comments on commit c8a6c52

Please sign in to comment.