Skip to content

Commit 57a4fdd

Browse files
authored
Merge pull request #17 from akash4sh/main
Add ingressroute for otel-collector
2 parents 469bbf0 + 0d69f41 commit 57a4fdd

File tree

4 files changed

+36
-7
lines changed

4 files changed

+36
-7
lines changed

charts/tracetest/Chart.lock

Lines changed: 0 additions & 6 deletions
This file was deleted.

charts/tracetest/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ name: tracetest
1010
sources:
1111
- https://github.com/kubeshop/helm-charts/tree/main/charts
1212
type: application
13-
version: 1.0.0
13+
version: 1.0.1
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{{- if .Values.otelCollector.ingressRoute.enabled -}}
2+
apiVersion: traefik.containo.us/v1alpha1
3+
kind: IngressRoute
4+
metadata:
5+
name: {{ include "tracetest.fullname" . }}-otel-collector
6+
{{- with .Values.otelCollector.ingressRoute.annotations }}
7+
annotations:
8+
{{- toYaml . | nindent 4 }}
9+
{{- end }}
10+
spec:
11+
entryPoints:
12+
- web
13+
routes:
14+
- kind: Rule
15+
match: Host(`{{ .Values.otelCollector.ingressRoute.host }}`)
16+
services:
17+
- name: {{ include "tracetest.fullname" . }}-otel-collector
18+
port: {{ .Values.otelCollector.ingressRoute.service.port }}
19+
scheme: h2c
20+
{{- if .Values.otelCollector.ingressRoute.tls }}
21+
tls:
22+
{{- range .Values.otelCollector.ingressRoute.tls }}
23+
secretName: {{ .secretName }}
24+
{{- end }}
25+
{{- end }}
26+
{{- end }}

charts/tracetest/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,15 @@ otelCollector:
237237
# -- Protocol to use for OTLP HTTP
238238
protocol: TCP
239239

240+
ingressRoute:
241+
enabled: false
242+
annotations: {}
243+
host: "otelcollector.domain.com"
244+
service:
245+
port: 4317
246+
tls: []
247+
# - secretName: chart-example-tls
248+
240249
ingress:
241250
# -- Enable ingress for OtelCollector
242251
enabled: false

0 commit comments

Comments
 (0)