Skip to content

Commit 3139437

Browse files
Merge pull request #3491 from xogoodnow/min-ready
[tempo-distributed] Added minReadySeconds for metrics generator
2 parents fc5e58f + 9fe95d2 commit 3139437

File tree

10 files changed

+24
-9
lines changed

10 files changed

+24
-9
lines changed

charts/tempo-distributed/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: tempo-distributed
33
description: Grafana Tempo in MicroService mode
44
type: application
5-
version: 1.38.0
5+
version: 1.38.1
66
appVersion: 2.7.1
77
engine: gotpl
88
home: https://grafana.com/docs/tempo/latest/

charts/tempo-distributed/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tempo-distributed
22

3-
![Version: 1.38.0](https://img.shields.io/badge/Version-1.38.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.7.1](https://img.shields.io/badge/AppVersion-2.7.1-informational?style=flat-square)
3+
![Version: 1.38.1](https://img.shields.io/badge/Version-1.38.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.7.1](https://img.shields.io/badge/AppVersion-2.7.1-informational?style=flat-square)
44

55
Grafana Tempo in MicroService mode
66

@@ -334,6 +334,7 @@ The memcached default args are removed and should be provided manually. The sett
334334
| compactor.image.tag | string | `nil` | Docker image tag for the compactor image. Overrides `tempo.image.tag` |
335335
| compactor.initContainers | list | `[]` | Init containers to add to the compactor pod |
336336
| compactor.maxUnavailable | int | `1` | Pod Disruption Budget maxUnavailable |
337+
| compactor.minReadySeconds | int | `10` | Minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing/terminating |
337338
| compactor.nodeSelector | object | `{}` | Node selector for compactor pods |
338339
| compactor.podAnnotations | object | `{}` | Annotations for compactor pods |
339340
| compactor.podLabels | object | `{}` | Labels for compactor pods |
@@ -372,6 +373,7 @@ The memcached default args are removed and should be provided manually. The sett
372373
| distributor.image.tag | string | `nil` | Docker image tag for the distributor image. Overrides `tempo.image.tag` |
373374
| distributor.initContainers | list | `[]` | Init containers for the distributor pod |
374375
| distributor.maxUnavailable | int | `1` | Pod Disruption Budget maxUnavailable |
376+
| distributor.minReadySeconds | int | `10` | Minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing/terminating |
375377
| distributor.nodeSelector | object | `{}` | Node selector for distributor pods |
376378
| distributor.podAnnotations | object | `{}` | Annotations for distributor pods |
377379
| distributor.podLabels | object | `{}` | Labels for distributor pods |
@@ -508,6 +510,7 @@ The memcached default args are removed and should be provided manually. The sett
508510
| gateway.ingress.labels | object | `{}` | Labels for the gateway ingress |
509511
| gateway.ingress.tls | list | `[{"hosts":["gateway.tempo.example.com"],"secretName":"tempo-gateway-tls"}]` | TLS configuration for the gateway ingress |
510512
| gateway.maxUnavailable | int | `1` | Pod Disruption Budget maxUnavailable |
513+
| gateway.minReadySeconds | int | `10` | Minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing/terminating |
511514
| gateway.nginxConfig.file | string | See values.yaml | Config file contents for Nginx. Passed through the `tpl` function to allow templating |
512515
| gateway.nginxConfig.httpSnippet | string | `""` | Allows appending custom configuration to the http block |
513516
| gateway.nginxConfig.logFormat | string | `"main '$remote_addr - $remote_user [$time_local] $status '\n '\"$request\" $body_bytes_sent \"$http_referer\" '\n '\"$http_user_agent\" \"$http_x_forwarded_for\"';"` | NGINX log format |
@@ -705,6 +708,7 @@ The memcached default args are removed and should be provided manually. The sett
705708
| metricsGenerator.initContainers | list | `[]` | Init containers for the metrics generator pod |
706709
| metricsGenerator.kind | string | `"Deployment"` | Kind of deployment [StatefulSet/Deployment] |
707710
| metricsGenerator.maxUnavailable | int | `1` | Pod Disruption Budget maxUnavailable |
711+
| metricsGenerator.minReadySeconds | int | `10` | Minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing/terminating |
708712
| metricsGenerator.nodeSelector | object | `{}` | Node selector for metrics-generator pods |
709713
| metricsGenerator.persistence | object | `{"annotations":{},"enabled":false,"labels":{},"size":"10Gi","storageClass":null}` | Persistence configuration for metrics-generator |
710714
| metricsGenerator.persistence.annotations | object | `{}` | Annotations for metrics generator PVCs |
@@ -849,6 +853,7 @@ The memcached default args are removed and should be provided manually. The sett
849853
| queryFrontend.ingress.tls | list | `[{"hosts":["query.tempo.example.com"],"secretName":"tempo-query-tls"}]` | TLS configuration for the Jaeger ingress |
850854
| queryFrontend.initContainers | list | `[]` | Init containers for the query-frontend pod |
851855
| queryFrontend.maxUnavailable | int | `1` | Pod Disruption Budget maxUnavailable |
856+
| queryFrontend.minReadySeconds | int | `10` | Minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing/terminating |
852857
| queryFrontend.nodeSelector | object | `{}` | Node selector for query-frontend pods |
853858
| queryFrontend.podAnnotations | object | `{}` | Annotations for query-frontend pods |
854859
| queryFrontend.podLabels | object | `{}` | Labels for queryFrontend pods |

charts/tempo-distributed/templates/compactor/deployment-compactor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
{{- toYaml . | nindent 4 }}
1212
{{- end }}
1313
spec:
14-
minReadySeconds: 10
14+
minReadySeconds: {{ .Values.compactor.minReadySeconds }}
1515
replicas: {{ .Values.compactor.replicas }}
1616
revisionHistoryLimit: 10
1717
selector:

charts/tempo-distributed/templates/distributor/deployment-distributor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
{{- toYaml . | nindent 4 }}
1212
{{- end }}
1313
spec:
14-
minReadySeconds: 10
14+
minReadySeconds: {{ .Values.distributor.minReadySeconds }}
1515
{{- if not .Values.distributor.autoscaling.enabled }}
1616
replicas: {{ .Values.distributor.replicas }}
1717
{{- end }}

charts/tempo-distributed/templates/gateway/deployment-gateway.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
labels:
99
{{- include "tempo.labels" $dict | nindent 4 }}
1010
spec:
11-
minReadySeconds: 10
11+
minReadySeconds: {{ .Values.gateway.minReadySeconds }}
1212
{{- if not .Values.gateway.autoscaling.enabled }}
1313
replicas: {{ .Values.gateway.replicas }}
1414
{{- end }}

charts/tempo-distributed/templates/metrics-generator/deployment-metrics-generator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
{{- toYaml . | nindent 4 }}
1313
{{- end }}
1414
spec:
15-
minReadySeconds: 10
15+
minReadySeconds: {{ .Values.metricsGenerator.minReadySeconds }}
1616
replicas: {{ .Values.metricsGenerator.replicas }}
1717
revisionHistoryLimit: 10
1818
selector:

charts/tempo-distributed/templates/metrics-generator/statefulset-metrics-generator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ metadata:
1414
{{- toYaml . | nindent 4 }}
1515
{{- end }}
1616
spec:
17-
minReadySeconds: 10
17+
minReadySeconds: {{ .Values.metricsGenerator.minReadySeconds }}
1818
replicas: {{ .Values.metricsGenerator.replicas }}
1919
revisionHistoryLimit: 10
2020
podManagementPolicy: Parallel

charts/tempo-distributed/templates/querier/deployment-querier.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
{{- toYaml . | nindent 4 }}
1212
{{- end }}
1313
spec:
14-
minReadySeconds: 10
14+
minReadySeconds: {{ .Values.querier.minReadySeconds }}
1515
{{- if not .Values.querier.autoscaling.enabled }}
1616
replicas: {{ .Values.querier.replicas }}
1717
{{- end }}

charts/tempo-distributed/templates/query-frontend/deployment-query-frontend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
{{- toYaml . | nindent 4 }}
1212
{{- end }}
1313
spec:
14-
minReadySeconds: 10
14+
minReadySeconds: {{ .Values.queryFrontend.minReadySeconds }}
1515
{{- if not .Values.queryFrontend.autoscaling.enabled }}
1616
replicas: {{ .Values.queryFrontend.replicas }}
1717
{{- end }}

charts/tempo-distributed/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ metricsGenerator:
383383
topologyKey: topology.kubernetes.io/zone
384384
# -- Pod Disruption Budget maxUnavailable
385385
maxUnavailable: 1
386+
# -- Minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing/terminating
387+
minReadySeconds: 10
386388
# -- Node selector for metrics-generator pods
387389
nodeSelector: {}
388390
# -- Tolerations for metrics-generator pods
@@ -571,6 +573,8 @@ distributor:
571573
maxUnavailable: 1
572574
# -- Pod Disruption Budget maxUnavailable
573575
maxUnavailable: 1
576+
# -- Minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing/terminating
577+
minReadySeconds: 10
574578
# -- Node selector for distributor pods
575579
nodeSelector: {}
576580
# -- Tolerations for distributor pods
@@ -693,6 +697,8 @@ compactor:
693697
terminationGracePeriodSeconds: 30
694698
# -- Pod Disruption Budget maxUnavailable
695699
maxUnavailable: 1
700+
# -- Minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing/terminating
701+
minReadySeconds: 10
696702
# -- Node selector for compactor pods
697703
nodeSelector: {}
698704
# -- Tolerations for compactor pods
@@ -1019,6 +1025,8 @@ queryFrontend:
10191025
topologyKey: topology.kubernetes.io/zone
10201026
# -- Pod Disruption Budget maxUnavailable
10211027
maxUnavailable: 1
1028+
# -- Minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing/terminating
1029+
minReadySeconds: 10
10221030
# -- Node selector for query-frontend pods
10231031
nodeSelector: {}
10241032
# -- Tolerations for query-frontend pods
@@ -1927,6 +1935,8 @@ gateway:
19271935
topologyKey: topology.kubernetes.io/zone
19281936
# -- Pod Disruption Budget maxUnavailable
19291937
maxUnavailable: 1
1938+
# -- Minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing/terminating
1939+
minReadySeconds: 10
19301940
# -- Node selector for gateway pods
19311941
nodeSelector: {}
19321942
# -- Tolerations for gateway pods

0 commit comments

Comments
 (0)