-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathotel-agent.DaemonSet.yaml
More file actions
75 lines (75 loc) · 2.17 KB
/
otel-agent.DaemonSet.yaml
File metadata and controls
75 lines (75 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
apiVersion: apps/v1
kind: DaemonSet
metadata:
annotations:
description: Forwards telemetry data to the OpenTelemetry Collector Deployment.
prometheus.io/port: "8888"
sourcegraph.prometheus/scrape: "true"
labels:
deploy: sourcegraph
sourcegraph-resource-requires: no-cluster-admin
app.kubernetes.io/component: otel-collector
name: otel-agent
spec:
selector:
matchLabels:
app: otel-agent
minReadySeconds: 5
revisionHistoryLimit: 10
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: otel-agent
labels:
deploy: sourcegraph
app: otel-agent
spec:
containers:
- name: otel-agent
image: us-docker.pkg.dev/sourcegraph-images/internal/opentelemetry-collector:6.12.2541@sha256:cad5c25982dfddea4890949685ffcc10ba277b3f53068a121b2d07a5cc851ed5
command:
- "/bin/otelcol-sourcegraph"
- "--config=/etc/otel-agent/config.yaml"
terminationMessagePolicy: FallbackToLogsOnError
resources:
limits:
cpu: "500m"
memory: 500Mi
requests:
cpu: "100m"
memory: 100Mi
readinessProbe:
httpGet:
path: /
port: 13133
livenessProbe:
httpGet:
path: /
port: 13133
securityContext:
# Required to prevent escalations to root.
allowPrivilegeEscalation: false
runAsUser: 100
runAsGroup: 101
ports:
- containerPort: 55679
name: zpages
- containerPort: 4317
hostPort: 4317
name: otlp-grpc
- containerPort: 4318
hostPort: 4318
name: otlp-http
- containerPort: 8888
name: metrics
volumeMounts:
- name: config
mountPath: /etc/otel-agent
terminationGracePeriodSeconds: 120
volumes:
- name: config
configMap:
name: otel-agent
items:
- key: config.yaml
path: config.yaml