Skip to content

Commit 3a4c37a

Browse files
authored
Merge pull request #13 from tiggerlee2/master
Add env COLLECTOR_ZIPKIN_HTTP_PORT when collector.service.zipkinPort present
2 parents 4d96fec + 406fa2f commit 3a4c37a

5 files changed

Lines changed: 11 additions & 3 deletions

File tree

charts/jaeger/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: 1.16.0
33
description: A Jaeger Helm chart for Kubernetes
44
name: jaeger
5-
version: 0.17.8
5+
version: 0.17.9
66
keywords:
77
- jaeger
88
- opentracing

charts/jaeger/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ The following table lists the configurable parameters of the Jaeger chart and th
286286
| `collector.service.loadBalancerSourceRanges` | list of IP CIDRs allowed access to load balancer (if supported) | `[]` |
287287
| `collector.service.tchannelPort` | Jaeger Agent port for thrift| `14267` |
288288
| `collector.service.type` | Service type | `ClusterIP` |
289-
| `collector.service.zipkinPort` | Zipkin port for JSON/thrift HTTP | `9411` |
289+
| `collector.service.zipkinPort` | Zipkin port for JSON/thrift HTTP | `nil` |
290290
| `collector.extraConfigmapMounts` | Additional collector configMap mounts | `[]` |
291291
| `collector.samplingConfig` | [Sampling strategies json file](https://www.jaegertracing.io/docs/latest/sampling/#collector-sampling-configuration) | `nil` |
292292
| `elasticsearch.rbac.create` | To enable RBAC | `false` |

charts/jaeger/templates/collector-deploy.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ spec:
5555
- name: {{ $key | replace "." "_" | replace "-" "_" | upper | quote }}
5656
value: {{ $value | quote }}
5757
{{- end }}
58+
{{- if .Values.collector.service.zipkinPort }}
59+
- name: COLLECTOR_ZIPKIN_HTTP_PORT
60+
value: {{ .Values.collector.service.zipkinPort | quote }}
61+
{{- end }}
5862
- name: SPAN_STORAGE_TYPE
5963
value: {{ .Values.storage.type }}
6064
{{- if eq .Values.storage.type "cassandra" }}
@@ -117,9 +121,11 @@ spec:
117121
- containerPort: 14269
118122
name: admin
119123
protocol: TCP
124+
{{- if .Values.collector.service.zipkinPort }}
120125
- containerPort: {{ .Values.collector.service.zipkinPort }}
121126
name: zipkin
122127
protocol: TCP
128+
{{- end }}
123129
readinessProbe:
124130
httpGet:
125131
path: /

charts/jaeger/templates/collector-svc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ spec:
2727
port: {{ .Values.collector.service.httpPort }}
2828
protocol: TCP
2929
targetPort: http
30+
{{- if .Values.collector.service.zipkinPort }}
3031
- name: zipkin
3132
port: {{ .Values.collector.service.zipkinPort }}
3233
protocol: TCP
3334
targetPort: zipkin
35+
{{- end }}
3436
selector:
3537
app.kubernetes.io/name: {{ include "jaeger.name" . }}
3638
app.kubernetes.io/component: collector

charts/jaeger/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ collector:
168168
# httpPort: can accept spans directly from clients in jaeger.thrift format
169169
httpPort: 14268
170170
# can accept Zipkin spans in JSON or Thrift
171-
zipkinPort: 9411
171+
# zipkinPort: 9411
172172
resources: {}
173173
# limits:
174174
# cpu: 1

0 commit comments

Comments
 (0)