Skip to content

Commit d17cec5

Browse files
committed
Remove gateway.enableGrpc Helm value, use existing otel one, add configurable port to otel grpc values
Signed-off-by: Jonas De Gendt <[email protected]>
1 parent 98b3a5f commit d17cec5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

charts/tempo-distributed/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,6 @@ The memcached default args are removed and should be provided manually. The sett
502502
| gateway.basicAuth.htpasswd | string | `"{{ htpasswd (required \"'gateway.basicAuth.username' is required\" .Values.gateway.basicAuth.username) (required \"'gateway.basicAuth.password' is required\" .Values.gateway.basicAuth.password) }}"` | Uses the specified username and password to compute a htpasswd using Sprig's `htpasswd` function. The value is templated using `tpl`. Override this to use a custom htpasswd, e.g. in case the default causes high CPU load. |
503503
| gateway.basicAuth.password | string | `nil` | The basic auth password for the gateway |
504504
| gateway.basicAuth.username | string | `nil` | The basic auth username for the gateway |
505-
| gateway.enableGrpc | bool | `false` | Enables the routes and ports that enable pushing traces using gRPC |
506505
| gateway.enabled | bool | `false` | Specifies whether the gateway should be enabled |
507506
| gateway.extraArgs | list | `[]` | Additional CLI args for the gateway |
508507
| gateway.extraContainers | list | `[]` | Containers to add to the gateway pods |
@@ -994,6 +993,7 @@ The memcached default args are removed and should be provided manually. The sett
994993
| traces.opencensus.enabled | bool | `false` | Enable Tempo to ingest Open Census traces |
995994
| traces.opencensus.receiverConfig | object | `{}` | Open Census receiver config |
996995
| traces.otlp.grpc.enabled | bool | `false` | Enable Tempo to ingest Open Telemetry GRPC traces |
996+
| traces.otlp.grpc.port | int | `4317` | |
997997
| traces.otlp.grpc.receiverConfig | object | `{}` | GRPC receiver advanced config |
998998
| traces.otlp.http.enabled | bool | `false` | Enable Tempo to ingest Open Telemetry HTTP traces |
999999
| traces.otlp.http.receiverConfig | object | `{}` | HTTP receiver advanced config |

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ spec:
6262
- name: http-metrics
6363
containerPort: 8080
6464
protocol: TCP
65-
{{- if .Values.gateway.enableGrpc }}
65+
{{- if .Values.traces.oltp.grpc.enabled }}
6666
- name: grpc-otlp
67-
containerPort: 4317
67+
containerPort: {{ .Values.traces.otlp.grpc.port }}
6868
protocol: TCP
6969
{{- end }}
7070
{{- if or .Values.global.extraEnv .Values.gateway.extraEnv }}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ spec:
2929
nodePort: {{ .Values.gateway.service.nodePort }}
3030
{{- end }}
3131
protocol: TCP
32-
{{- if .Values.gateway.enableGrpc }}
32+
{{- if .Values.traces.oltp.grpc.enabled }}
3333
- name: grpc-otlp
34+
port: {{ .Values.traces.otlp.grpc.port }}
3435
targetPort: grpc-otlp
3536
protocol: TCP
3637
{{- end }}

charts/tempo-distributed/values.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,7 @@ traces:
12101210
enabled: false
12111211
# -- GRPC receiver advanced config
12121212
receiverConfig: {}
1213+
port: 4317
12131214
opencensus:
12141215
# -- Enable Tempo to ingest Open Census traces
12151216
enabled: false
@@ -1965,8 +1966,6 @@ gateway:
19651966
extraVolumes: []
19661967
# -- Volume mounts to add to the gateway pods
19671968
extraVolumeMounts: []
1968-
# -- Enables the routes and ports that enable pushing traces using gRPC
1969-
enableGrpc: false
19701969
# -- Containers to add to the gateway pods
19711970
extraContainers: []
19721971
# -- Resource requests and limits for the gateway
@@ -2195,10 +2194,10 @@ gateway:
21952194
{{- end }}
21962195
}
21972196
2198-
{{- if .Values.gateway.enableGrpc }}
2197+
{{- if .Values.traces.oltp.grpc.enabled }}
21992198
# OTLP gRPC
22002199
server {
2201-
listen 4317 http2;
2200+
listen {{ .Values.traces.otlp.grpc.port }} http2;
22022201
22032202
{{- if .Values.gateway.basicAuth.enabled }}
22042203
auth_basic "Tempo";

0 commit comments

Comments
 (0)