Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tempo-distributed] Static ports #3501

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion charts/tempo-distributed/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: tempo-distributed
description: Grafana Tempo in MicroService mode
type: application
version: 1.28.0
version: 1.28.1
appVersion: 2.6.0
engine: gotpl
home: https://grafana.com/docs/tempo/latest/
Expand Down
18 changes: 13 additions & 5 deletions charts/tempo-distributed/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tempo-distributed

![Version: 1.28.0](https://img.shields.io/badge/Version-1.28.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.0](https://img.shields.io/badge/AppVersion-2.6.0-informational?style=flat-square)
![Version: 1.28.1](https://img.shields.io/badge/Version-1.28.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.0](https://img.shields.io/badge/AppVersion-2.6.0-informational?style=flat-square)

Grafana Tempo in MicroService mode

Expand Down Expand Up @@ -316,6 +316,7 @@ The memcached default args are removed and should be provided manually. The sett
| compactor.nodeSelector | object | `{}` | Node selector for compactor pods |
| compactor.podAnnotations | object | `{}` | Annotations for compactor pods |
| compactor.podLabels | object | `{}` | Labels for compactor pods |
| compactor.ports | list | `[{"name":"grpc","port":9095,"service":true},{"name":"http-metrics","port":3100,"service":true}]` | Compactor service ports |
| compactor.priorityClassName | string | `nil` | The name of the PriorityClass for compactor pods |
| compactor.replicas | int | `1` | Number of replicas for the compactor |
| compactor.resources | object | `{}` | Resource requests and limits for the compactor |
Expand Down Expand Up @@ -350,6 +351,7 @@ The memcached default args are removed and should be provided manually. The sett
| distributor.nodeSelector | object | `{}` | Node selector for distributor pods |
| distributor.podAnnotations | object | `{}` | Annotations for distributor pods |
| distributor.podLabels | object | `{}` | Labels for distributor pods |
| distributor.ports | list | `[{"name":"grpc","port":9095,"service":true},{"name":"http-metrics","port":3100,"service":true}]` | Distributor service ports |
| distributor.priorityClassName | string | `nil` | The name of the PriorityClass for distributor pods |
| distributor.replicas | int | `1` | Number of replicas for the distributor |
| distributor.resources | object | `{}` | Resource requests and limits for the distributor |
Expand Down Expand Up @@ -389,14 +391,14 @@ The memcached default args are removed and should be provided manually. The sett
| enterpriseFederationFrontend.nodeSelector | object | `{}` | Node selector for federation-frontend pods |
| enterpriseFederationFrontend.podAnnotations | object | `{}` | Annotations for federation-frontend pods |
| enterpriseFederationFrontend.podLabels | object | `{}` | Labels for enterpriseFederationFrontend pods |
| enterpriseFederationFrontend.ports | list | `[{"name":"http-metrics","port":3100,"service":true}]` | Federation-frontend service ports |
| enterpriseFederationFrontend.priorityClassName | string | `nil` | The name of the PriorityClass for federation-frontend pods |
| enterpriseFederationFrontend.proxy_targets | list | `[]` | |
| enterpriseFederationFrontend.replicas | int | `1` | Number of replicas for the federation-frontend |
| enterpriseFederationFrontend.resources | object | `{}` | Resource requests and limits for the federation-frontend |
| enterpriseFederationFrontend.service.annotations | object | `{}` | Annotations for enterpriseFederationFrontend service |
| enterpriseFederationFrontend.service.loadBalancerIP | string | `""` | If type is LoadBalancer you can assign the IP to the LoadBalancer |
| enterpriseFederationFrontend.service.loadBalancerSourceRanges | list | `[]` | If type is LoadBalancer limit incoming traffic from IPs. |
| enterpriseFederationFrontend.service.port | int | `3100` | Port of the federation-frontend service |
| enterpriseFederationFrontend.service.type | string | `"ClusterIP"` | Type of service for the enterpriseFederationFrontend |
| enterpriseFederationFrontend.terminationGracePeriodSeconds | int | `30` | Grace period to allow the federation-frontend to shutdown before it is killed |
| enterpriseFederationFrontend.tolerations | list | `[]` | Tolerations for federation-frontend pods |
Expand Down Expand Up @@ -490,9 +492,11 @@ The memcached default args are removed and should be provided manually. The sett
| gateway.podAnnotations | object | `{}` | Annotations for gateway pods |
| gateway.podLabels | object | `{}` | Labels for gateway pods |
| gateway.priorityClassName | string | `nil` | The name of the PriorityClass for gateway pods |
| gateway.readinessProbe.failureThreshold | int | `3` | |
| gateway.readinessProbe.httpGet.path | string | `"/"` | |
| gateway.readinessProbe.httpGet.port | string | `"http-metrics"` | |
| gateway.readinessProbe.initialDelaySeconds | int | `15` | |
| gateway.readinessProbe.periodSeconds | int | `10` | |
| gateway.readinessProbe.successThreshold | int | `1` | |
| gateway.readinessProbe.timeoutSeconds | int | `1` | |
| gateway.replicas | int | `1` | Number of replicas for the gateway |
| gateway.resources | object | `{}` | Resource requests and limits for the gateway |
Expand All @@ -501,6 +505,7 @@ The memcached default args are removed and should be provided manually. The sett
| gateway.service.clusterIP | string | `nil` | ClusterIP of the gateway service |
| gateway.service.labels | object | `{}` | Labels for gateway service |
| gateway.service.loadBalancerIP | string | `nil` | Load balancer IP address if service type is LoadBalancer |
| gateway.service.name | string | `"http-gateway"` | Port Name of the gateway service |
| gateway.service.nodePort | string | `nil` | Node port if service type is NodePort |
| gateway.service.port | int | `80` | Port of the gateway service |
| gateway.service.type | string | `"ClusterIP"` | Type of the gateway service |
Expand Down Expand Up @@ -556,6 +561,7 @@ The memcached default args are removed and should be provided manually. The sett
| ingester.persistentVolumeClaimRetentionPolicy.whenScaled | string | `"Retain"` | Volume retention behavior when the replica count of the StatefulSet is reduced |
| ingester.podAnnotations | object | `{}` | Annotations for ingester pods |
| ingester.podLabels | object | `{}` | Labels for ingester pods |
| ingester.ports | list | `[{"name":"grpc","port":9095,"service":true},{"name":"http-metrics","port":3100,"service":true}]` | Ingester service ports |
| ingester.priorityClassName | string | `nil` | The name of the PriorityClass for ingester pods |
| ingester.replicas | int | `3` | Number of replicas for the ingester |
| ingester.resources | object | `{}` | Resource requests and limits for the ingester |
Expand Down Expand Up @@ -682,7 +688,7 @@ The memcached default args are removed and should be provided manually. The sett
| metricsGenerator.persistentVolumeClaimRetentionPolicy.whenScaled | string | `"Retain"` | Volume retention behavior when the replica count of the StatefulSet is reduced |
| metricsGenerator.podAnnotations | object | `{}` | Annotations for metrics-generator pods |
| metricsGenerator.podLabels | object | `{}` | Labels for metrics-generator pods |
| metricsGenerator.ports | list | `[{"name":"grpc","port":9095,"service":true},{"name":"http-memberlist","port":7946,"service":false},{"name":"http-metrics","port":3100,"service":true}]` | Default ports |
| metricsGenerator.ports | list | `[{"name":"grpc","port":9095,"service":true},{"name":"http-memberlist","port":7946,"service":false},{"name":"http-metrics","port":3100,"service":true}]` | Metrics-generator service ports |
| metricsGenerator.priorityClassName | string | `nil` | The name of the PriorityClass for metrics-generator pods |
| metricsGenerator.replicas | int | `1` | Number of replicas for the metrics-generator |
| metricsGenerator.resources | object | `{}` | Resource requests and limits for the metrics-generator |
Expand Down Expand Up @@ -748,6 +754,7 @@ The memcached default args are removed and should be provided manually. The sett
| querier.nodeSelector | object | `{}` | Node selector for querier pods |
| querier.podAnnotations | object | `{}` | Annotations for querier pods |
| querier.podLabels | object | `{}` | Labels for querier pods |
| querier.ports | list | `[{"name":"grpc","port":9095,"service":true},{"name":"http-metrics","port":3100,"service":true}]` | Querier service ports |
| querier.priorityClassName | string | `nil` | The name of the PriorityClass for querier pods |
| querier.replicas | int | `1` | Number of replicas for the querier |
| querier.resources | object | `{}` | Resource requests and limits for the querier |
Expand Down Expand Up @@ -795,6 +802,7 @@ The memcached default args are removed and should be provided manually. The sett
| queryFrontend.nodeSelector | object | `{}` | Node selector for query-frontend pods |
| queryFrontend.podAnnotations | object | `{}` | Annotations for query-frontend pods |
| queryFrontend.podLabels | object | `{}` | Labels for queryFrontend pods |
| queryFrontend.ports | list | `[{"name":"grpc","port":9095,"service":true},{"name":"http-metrics","port":3100,"service":true}]` | QueryFrontend service ports |
| queryFrontend.priorityClassName | string | `nil` | The name of the PriorityClass for query-frontend pods |
| queryFrontend.query.config | string | `"backend: 127.0.0.1:3100\n"` | |
| queryFrontend.query.enabled | bool | `false` | Required for grafana version <7.5 for compatibility with jaeger-ui. Doesn't work on ARM arch |
Expand All @@ -807,14 +815,14 @@ The memcached default args are removed and should be provided manually. The sett
| queryFrontend.query.image.registry | string | `nil` | The Docker registry for the tempo-query image. Overrides `tempo.image.registry` |
| queryFrontend.query.image.repository | string | `"grafana/tempo-query"` | Docker image repository for the tempo-query image. Overrides `tempo.image.repository` |
| queryFrontend.query.image.tag | string | `nil` | Docker image tag for the tempo-query image. Overrides `tempo.image.tag` |
| queryFrontend.query.ports | list | `[{"name":"tempo-query-metrics","port":16687,"service":true},{"name":"tempo-query-jaeger-ui","port":16686,"service":true},{"name":"tempo-query-jaeger-grpc","port":16685,"service":true}]` | Query service ports |
| queryFrontend.query.resources | object | `{}` | Resource requests and limits for the query |
| queryFrontend.replicas | int | `1` | Number of replicas for the query-frontend |
| queryFrontend.resources | object | `{}` | Resource requests and limits for the query-frontend |
| queryFrontend.service.annotations | object | `{}` | Annotations for queryFrontend service |
| queryFrontend.service.labels | object | `{}` | Labels for queryFrontend service |
| queryFrontend.service.loadBalancerIP | string | `""` | If type is LoadBalancer you can assign the IP to the LoadBalancer |
| queryFrontend.service.loadBalancerSourceRanges | list | `[]` | If type is LoadBalancer limit incoming traffic from IPs. |
| queryFrontend.service.port | int | `16686` | Port of the query-frontend service |
| queryFrontend.service.type | string | `"ClusterIP"` | Type of service for the queryFrontend |
| queryFrontend.serviceDiscovery.annotations | object | `{}` | Annotations for queryFrontendDiscovery service |
| queryFrontend.serviceDiscovery.labels | object | `{}` | Labels for queryFrontendDiscovery service |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ spec:
imagePullPolicy: {{ .Values.tempo.image.pullPolicy }}
name: compactor
ports:
- containerPort: 3100
name: http-metrics
{{- range .Values.compactor.ports }}
- name: {{ .name | quote }}
containerPort: {{ .port }}
{{- end }}
- containerPort: {{ include "tempo.memberlistBindPort" . }}
name: http-memberlist
{{- if or .Values.global.extraEnv .Values.compactor.extraEnv }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ metadata:
spec:
type: ClusterIP
ports:
- name: http-metrics
port: 3100
targetPort: 3100
{{- range .Values.metricsGenerator.ports }}
{{- if .service }}
- name: {{ .name | quote }}
port: {{ .port }}
protocol: TCP
targetPort: {{ .port }}
{{- end }}
{{- end }}
selector:
{{- include "tempo.selectorLabels" (dict "ctx" . "component" "compactor") | nindent 4 }}
ipFamilies: {{ .Values.tempo.service.ipFamilies }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ spec:
imagePullPolicy: {{ .Values.tempo.image.pullPolicy }}
name: distributor
ports:
{{- range .Values.distributor.ports }}
- name: {{ .name | quote }}
containerPort: {{ .port }}
{{- end }}
- containerPort: {{ include "tempo.memberlistBindPort" . }}
name: http-memberlist
protocol: TCP
- containerPort: 3100
name: http-metrics
{{- if .Values.traces.jaeger.thriftCompact.enabled }}
- containerPort: 6831
name: jaeger-compact
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,17 @@ spec:
type: ClusterIP
clusterIP: None
ports:
- name: http-metrics
port: 3100
targetPort: http-metrics
{{- range .Values.distributor.ports }}
{{- if .service }}
- name: {{ .name | quote }}
port: {{ .port }}
protocol: TCP
targetPort: {{ .port }}
{{- if .Values.distributor.appProtocol.grpc }}
appProtocol: {{ .Values.distributor.appProtocol.grpc }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.traces.jaeger.thriftCompact.enabled }}
- name: distributor-jaeger-thrift-compact
port: 6831
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ spec:
ipFamilies: {{ .Values.tempo.service.ipFamilies }}
ipFamilyPolicy: {{ .Values.tempo.service.ipFamilyPolicy }}
ports:
- name: http-metrics
port: 3100
targetPort: http-metrics
- name: grpc
port: 9095
{{- range .Values.distributor.ports }}
{{- if .service }}
- name: {{ .name | quote }}
port: {{ .port }}
protocol: TCP
targetPort: 9095
targetPort: {{ .port }}
{{- if .Values.distributor.appProtocol.grpc }}
appProtocol: {{ .Values.distributor.appProtocol.grpc }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.traces.jaeger.thriftCompact.enabled }}
- name: distributor-jaeger-thrift-compact
port: 6831
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ spec:
imagePullPolicy: {{ .Values.tempo.image.pullPolicy }}
name: federation-frontend
ports:
- containerPort: 3100
name: http-metrics
{{- range .Values.enterpriseFederationFrontend.ports }}
- name: {{ .name | quote }}
containerPort: {{ .port }}
{{- end }}
{{- if or .Values.global.extraEnv .Values.enterpriseFederationFrontend.extraEnv }}
env:
{{- with .Values.global.extraEnv }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ metadata:
spec:
type: {{ .Values.enterpriseFederationFrontend.service.type }}
ports:
- name: http-metrics
port: 3100
targetPort: 3100
{{- range .Values.enterpriseFederationFrontend.ports }}
{{- if .service }}
- name: {{ .name | quote }}
port: {{ .port }}
protocol: TCP
targetPort: {{ .port }}
{{- end }}
{{- end }}
{{- if .Values.enterpriseFederationFrontend.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.enterpriseFederationFrontend.service.loadBalancerIP }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
image: "{{ include "tempo.imageReference" $dict }}"
imagePullPolicy: {{ .Values.gateway.image.pullPolicy }}
ports:
- name: http-metrics
- name: {{ .Values.gateway.service.name }}
containerPort: 8080
protocol: TCP
{{- if or .Values.global.extraEnv .Values.gateway.extraEnv }}
Expand All @@ -72,7 +72,15 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
{{- toYaml .Values.gateway.readinessProbe | nindent 12 }}
httpGet:
path: {{ .Values.gateway.path }}
port: {{ .Values.gateway.service.name }}
scheme: HTTP
initialDelaySeconds: {{ .Values.gateway.service.initialDelaySeconds }}
timeoutSeconds: {{ .Values.gateway.service.timeoutSeconds }}
periodSeconds: {{ .Values.gateway.service.periodSeconds }}
successThreshold: {{ .Values.gateway.service.successThreshold }}
failureThreshold: {{ .Values.gateway.service.failureThreshold }}
volumeMounts:
- name: config
mountPath: /etc/nginx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ spec:
loadBalancerIP: {{ .Values.gateway.service.loadBalancerIP }}
{{- end }}
ports:
- name: http-metrics
- name: {{ .Values.gateway.service.name }}
port: {{ .Values.gateway.service.port }}
targetPort: http-metrics
targetPort: 8080
{{- if and (eq "NodePort" .Values.gateway.service.type) .Values.gateway.service.nodePort }}
nodePort: {{ .Values.gateway.service.nodePort }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ spec:
type: ClusterIP
clusterIP: None
ports:
- name: http-metrics
port: 3100
{{- range .Values.ingester.ports }}
{{- if .service }}
- name: {{ .name | quote }}
port: {{ .port }}
protocol: TCP
targetPort: 3100
- name: grpc
port: 9095
protocol: TCP
targetPort: 9095
{{- if .Values.ingester.appProtocol.grpc }}
appProtocol: {{ .Values.ingester.appProtocol.grpc }}
targetPort: {{ .port }}
{{- if and (hasPrefix .name "grpc") ($.Values.ingester.appProtocol.grpc) }}
appProtocol: {{ $.Values.ingester.appProtocol.grpc }}
{{- end }}
{{- end }}
{{- end }}
selector:
{{- include "tempo.selectorLabels" $dict | nindent 4 }}
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ spec:
ipFamilies: {{ .Values.tempo.service.ipFamilies }}
ipFamilyPolicy: {{ .Values.tempo.service.ipFamilyPolicy }}
ports:
- name: http-metrics
port: 3100
{{- range .Values.ingester.ports }}
{{- if .service }}
- name: {{ .name | quote }}
port: {{ .port }}
protocol: TCP
targetPort: 3100
- name: grpc
port: 9095
protocol: TCP
targetPort: 9095
{{- if .Values.ingester.appProtocol.grpc }}
appProtocol: {{ .Values.ingester.appProtocol.grpc }}
targetPort: {{ .port }}
{{- if and (hasPrefix .name "grpc") ($.Values.ingester.appProtocol.grpc) }}
appProtocol: {{ $.Values.ingester.appProtocol.grpc }}
{{- end }}
{{- end }}
{{- end }}
selector:
{{- include "ingester.selectorLabels" $dict | nindent 4 }}
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ spec:
imagePullPolicy: {{ .Values.tempo.image.pullPolicy }}
name: ingester
ports:
- name: grpc
containerPort: 9095
{{- range .Values.ingester.ports }}
- name: {{ .name | quote }}
containerPort: {{ .port }}
{{- end }}
- name: http-memberlist
containerPort: {{ include "tempo.memberlistBindPort" . }}
- name: http-metrics
containerPort: 3100
{{- if or .Values.global.extraEnv .Values.ingester.extraEnv }}
env:
{{- with .Values.global.extraEnv }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ spec:
imagePullPolicy: {{ .Values.tempo.image.pullPolicy }}
name: querier
ports:
{{- range .Values.querier.ports }}
- name: {{ .name | quote }}
containerPort: {{ .port }}
{{- end }}
- containerPort: {{ include "tempo.memberlistBindPort" . }}
name: http-memberlist
protocol: TCP
- containerPort: 3100
name: http-metrics
{{- if or .Values.global.extraEnv .Values.querier.extraEnv }}
env:
{{- with .Values.global.extraEnv }}
Expand Down
Loading
Loading