File tree 5 files changed +44
-1
lines changed
5 files changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v1
2
2
appVersion : 1.15.1
3
3
description : A Jaeger Helm chart for Kubernetes
4
4
name : jaeger
5
- version : 0.15 .0
5
+ version : 0.16 .0
6
6
keywords :
7
7
- jaeger
8
8
- opentracing
Original file line number Diff line number Diff line change @@ -208,6 +208,11 @@ The following table lists the configurable parameters of the Jaeger chart and th
208
208
| `agent.service.zipkinThriftPort` | zipkin.thrift over compact thrift | `5775` |
209
209
| `agent.useHostNetwork` | Enable hostNetwork for agents | `false` |
210
210
| `agent.tolerations` | Node Tolerations | `[]` |
211
+ | `collector.autoscaling.enabled` | Enable horizontal pod autoscaling | `false` |
212
+ | `collector.autoscaling.minReplicas` | Minimum replicas | 2 |
213
+ | `collector.autoscaling.maxReplicas` | Maximum replicas | 10 |
214
+ | `collector.autoscaling.targetCPUUtilizationPercentage` | Target CPU utilization | 80 |
215
+ | `collector.autoscaling.targetMemoryUtilizationPercentage` | Target memory utilization | `nil` |
211
216
| `collector.cmdlineParams` | Additional command line parameters | `nil` |
212
217
| `collector.podAnnotations` | Annotations for Collector pod | `nil` |
213
218
| `collector.service.httpPort` | Client port for HTTP thrift | `14268` |
Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ metadata:
14
14
{{ toYaml .Values.collector.annotations | indent 4 }}
15
15
{{- end }}
16
16
spec :
17
+ {{- if not .Values.collector.autoscaling.enabled }}
17
18
replicas : {{ .Values.collector.replicaCount }}
19
+ {{- end }}
18
20
selector :
19
21
matchLabels :
20
22
app.kubernetes.io/name : {{ include "jaeger.name" . }}
Original file line number Diff line number Diff line change
1
+ {{- if .Values.collector.autoscaling.enabled }}
2
+ apiVersion : autoscaling/v2beta1
3
+ kind : HorizontalPodAutoscaler
4
+ metadata :
5
+ name : {{ template "jaeger.collector.name" . }}
6
+ labels :
7
+ app.kubernetes.io/name : {{ include "jaeger.name" . }}
8
+ helm.sh/chart : {{ include "jaeger.chart" . }}
9
+ app.kubernetes.io/component : collector
10
+ app.kubernetes.io/managed-by : {{ .Release.Service }}
11
+ app.kubernetes.io/instance : {{ .Release.Name }}
12
+ spec :
13
+ scaleTargetRef :
14
+ apiVersion : apps/v1
15
+ kind : Deployment
16
+ name : {{ template "jaeger.collector.name" . }}
17
+ minReplicas : {{ .Values.collector.autoscaling.minReplicas }}
18
+ maxReplicas : {{ .Values.collector.autoscaling.maxReplicas }}
19
+ metrics :
20
+ - type : Resource
21
+ resource :
22
+ name : cpu
23
+ targetAverageUtilization : {{ .Values.collector.autoscaling.targetCPUUtilizationPercentage | default 80 }}
24
+ {{- if .Values.collector.autoscaling.targetMemoryUtilizationPercentage }}
25
+ - type : Resource
26
+ resource :
27
+ name : memory
28
+ targetAverageUtilization : {{ .Values.collector.autoscaling.targetMemoryUtilizationPercentage }}
29
+ {{- end }}
30
+ {{- end }}
Original file line number Diff line number Diff line change @@ -151,6 +151,12 @@ collector:
151
151
dnsPolicy : ClusterFirst
152
152
cmdlineParams : {}
153
153
replicaCount : 1
154
+ autoscaling :
155
+ enabled : false
156
+ minReplicas : 2
157
+ maxReplicas : 10
158
+ # targetCPUUtilizationPercentage: 80
159
+ # targetMemoryUtilizationPercentage: 80
154
160
service :
155
161
annotations : {}
156
162
# List of IP ranges that are allowed to access the load balancer (if supported)
You can’t perform that action at this time.
0 commit comments