forked from signalfx/splunk-otel-collector-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaemonset.yaml
118 lines (116 loc) · 3.11 KB
/
daemonset.yaml
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
# Source: splunk-otel-collector/templates/daemonset.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: default-splunk-otel-collector-agent
labels:
app: splunk-otel-collector
chart: splunk-otel-collector-0.31.0
release: default
heritage: Helm
spec:
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
app: splunk-otel-collector
release: default
template:
metadata:
labels:
app: splunk-otel-collector
release: default
annotations:
checksum/config: 4db8ca0f95cd078629000ee4aee534f92a489bf9e7f3d6cde5a731dd844a3ac4
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
serviceAccountName: default-splunk-otel-collector
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
containers:
- name: otel-collector
command:
- /otelcol
- --config=/conf/relay.yaml
- --metrics-addr=0.0.0.0:8889
ports:
- name: jaeger-grpc
containerPort: 14250
hostPort: 14250
protocol: TCP
- name: jaeger-thrift
containerPort: 14268
hostPort: 14268
protocol: TCP
- name: otlp
containerPort: 4317
hostPort: 4317
protocol: TCP
- name: sfx-forwarder
containerPort: 9080
hostPort: 9080
protocol: TCP
- name: zipkin
containerPort: 9411
hostPort: 9411
protocol: TCP
image: quay.io/signalfx/splunk-otel-collector:0.31.0
imagePullPolicy: IfNotPresent
env:
- name: K8S_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: K8S_NODE_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.hostIP
- name: K8S_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: K8S_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: K8S_POD_UID
valueFrom:
fieldRef:
fieldPath: metadata.uid
- name: K8S_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: SPLUNK_ACCESS_TOKEN
valueFrom:
secretKeyRef:
name: splunk-otel-collector
key: splunk_access_token
readinessProbe:
httpGet:
path: /
port: 13133
livenessProbe:
httpGet:
path: /
port: 13133
resources:
limits:
cpu: 200m
memory: 500Mi
volumeMounts:
- mountPath: /conf
name: otel-configmap
terminationGracePeriodSeconds: 600
volumes:
- name: otel-configmap
configMap:
name: default-splunk-otel-collector-otel-agent
items:
- key: relay
path: relay.yaml