Skip to content

Commit

Permalink
Fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
moicalcob committed Dec 16, 2024
1 parent f425413 commit 8402174
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions chart/templates/otel-collector/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data:
service:
pipelines:
logs:
traces:
receivers: [otlp]
processors: [memory_limiter]
exporters: [exporters]
exporters: [debug]
17 changes: 11 additions & 6 deletions chart/templates/otel-collector/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,26 @@ metadata:
{{- end }}
spec:
selector:
matchLabels:
app: opentelemetry
component: otel-collector
matchLabels: matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
app.kubernetes.io/component: otel-collector
template:
metadata:
labels:
app: opentelemetry
component: otel-collector
annotations:
checksum/config: {{ include (print $.Template.BasePath "/otel-collector/configmap.yaml") . | sha256sum }}
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
labels: {{- include "common.labels.standard" . | nindent 8 }}
app.kubernetes.io/component: otel-collector
spec:
securityContext:
fsGroup: 101
supplementalGroups:
- 2345
containers:
- name: otel-collector
ports:
- containerPort: 4318
name: metrics
protocol: TCP
image: otel/opentelemetry-collector-contrib:0.115.1
resources:
limits:
Expand Down
4 changes: 3 additions & 1 deletion chart/templates/otel-collector/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ metadata:
{{- end }}
spec:
ports:
- name: metrics # Default endpoint for querying metrics.
- name: metrics
port: 4318
protocol: TCP
targetPort: metrics
selector:
{{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/component: otel-collector

0 comments on commit 8402174

Please sign in to comment.