-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathotel-collector.Deployment.yaml
More file actions
84 lines (84 loc) · 2.6 KB
/
otel-collector.Deployment.yaml
File metadata and controls
84 lines (84 loc) · 2.6 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
76
77
78
79
80
81
82
83
84
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
description: Receives, processes, and exports telemetry data.
labels:
deploy: sourcegraph
app.kubernetes.io/component: otel-collector
sourcegraph-resource-requires: no-cluster-admin
name: otel-collector
spec:
selector:
matchLabels:
app: otel-collector
minReadySeconds: 5
progressDeadlineSeconds: 120
replicas: 1
revisionHistoryLimit: 10
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: otel-collector
labels:
deploy: sourcegraph
app: otel-collector
spec:
containers:
- name: otel-collector
image: us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal/opentelemetry-collector:5.10.3940@sha256:588eb62e63d09870fd63071ff5aa97a5e1accb60a1e6eeb2b5521493b04da606
command:
- "/bin/otelcol-sourcegraph"
# To use a custom configuration, edit otel-collector.ConfigMap.yaml
# and change this flag to
# "--config=/etc/otel-collector/conf/config.yaml"
- "--config=/etc/otel-collector/configs/logging.yaml"
terminationMessagePolicy: FallbackToLogsOnError
securityContext:
# Required to prevent escalations to root.
allowPrivilegeEscalation: false
runAsUser: 100
runAsGroup: 101
resources:
limits:
cpu: "2"
memory: 3Gi
requests:
cpu: "0.5"
memory: 1Gi
readinessProbe:
httpGet:
path: /
port: 13133
livenessProbe:
httpGet:
path: /
port: 13133
ports:
- containerPort: 55679
name: zpages
- containerPort: 4317
name: otlp-grpc
- containerPort: 4318
name: otlp-http
- containerPort: 8888
name: metrics
volumeMounts:
- name: config
mountPath: /etc/otel-collector/conf
terminationGracePeriodSeconds: 120
securityContext:
runAsUser: 100
fsGroup: 101
fsGroupChangePolicy: "OnRootMismatch"
volumes:
# Not used by default.
# Edit the ConfigMap in otel-collector.ConfigMap.yaml:
# add your custom configuration, then update the command
# of the otel-collector container
- name: config
configMap:
name: otel-collector
items:
- key: config.yaml
path: config.yaml