Skip to content

Commit 213756d

Browse files
committed
Fix typo, make distributor port configurable as well
Signed-off-by: Jonas De Gendt <[email protected]>
1 parent 4e1c6dc commit 213756d

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ spec:
6262
- name: http-metrics
6363
containerPort: 8080
6464
protocol: TCP
65-
{{- if .Values.traces.oltp.grpc.enabled }}
65+
{{- if .Values.traces.otlp.grpc.enabled }}
6666
- name: grpc-otlp
6767
containerPort: {{ .Values.traces.otlp.grpc.port }}
6868
protocol: TCP

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
nodePort: {{ .Values.gateway.service.nodePort }}
3030
{{- end }}
3131
protocol: TCP
32-
{{- if .Values.traces.oltp.grpc.enabled }}
32+
{{- if .Values.traces.otlp.grpc.enabled }}
3333
- name: grpc-otlp
3434
port: {{ .Values.traces.otlp.grpc.port }}
3535
targetPort: grpc-otlp

charts/tempo-distributed/values.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,9 +1208,10 @@ traces:
12081208
receiverConfig: {}
12091209
grpc:
12101210
# -- Enable Tempo to ingest Open Telemetry GRPC traces
1211-
enabled: false
1211+
enabled: true
12121212
# -- GRPC receiver advanced config
12131213
receiverConfig: {}
1214+
# -- Default OTLP gRPC port
12141215
port: 4317
12151216
opencensus:
12161217
# -- Enable Tempo to ingest Open Census traces
@@ -1915,7 +1916,7 @@ minio:
19151916
# Configuration for the gateway
19161917
gateway:
19171918
# -- Specifies whether the gateway should be enabled
1918-
enabled: false
1919+
enabled: true
19191920
# -- Number of replicas for the gateway
19201921
replicas: 1
19211922
# -- hostAliases to add
@@ -2027,7 +2028,7 @@ gateway:
20272028
# Gateway ingress configuration
20282029
ingress:
20292030
# -- Specifies whether an ingress for the gateway should be created
2030-
enabled: false
2031+
enabled: true
20312032
# -- Labels for the gateway ingress
20322033
labels: {}
20332034
# -- Ingress Class Name. MAY be required for Kubernetes versions >= 1.18
@@ -2195,7 +2196,7 @@ gateway:
21952196
{{- end }}
21962197
}
21972198
2198-
{{- if .Values.traces.oltp.grpc.enabled }}
2199+
{{- if .Values.traces.otlp.grpc.enabled }}
21992200
# OTLP gRPC
22002201
server {
22012202
listen {{ .Values.traces.otlp.grpc.port }} http2;
@@ -2206,11 +2207,11 @@ gateway:
22062207
{{- end }}
22072208
22082209
location = /opentelemetry.proto.collector.trace.v1.TraceService/Export {
2209-
grpc_pass grpc://{{ include "tempo.resourceName" (dict "ctx" . "component" "distributor") }}.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}:4317;
2210+
grpc_pass grpc://{{ include "tempo.resourceName" (dict "ctx" . "component" "distributor") }}.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}:{{ .Values.traces.otlp.grpc.port }};
22102211
}
22112212
22122213
location ~ /opentelemetry {
2213-
grpc_pass grpc://{{ include "tempo.resourceName" (dict "ctx" . "component" "distributor") }}.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}:4317;
2214+
grpc_pass grpc://{{ include "tempo.resourceName" (dict "ctx" . "component" "distributor") }}.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}:{{ .Values.traces.otlp.grpc.port }};
22142215
}
22152216
22162217
{{- with .Values.gateway.nginxConfig.serverSnippet }}

0 commit comments

Comments
 (0)