forked from devfile-samples/devfile-sample-python-basic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatadog-agent.yaml
More file actions
229 lines (229 loc) · 6.91 KB
/
Copy pathdatadog-agent.yaml
File metadata and controls
229 lines (229 loc) · 6.91 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: datadog-agent
namespace: default
labels: {}
spec:
selector:
matchLabels:
app: datadog-agent
template:
metadata:
labels:
app: datadog-agent
name: datadog-agent
annotations: {}
spec:
containers:
- image: datadog/agent:7.31.1
imagePullPolicy: IfNotPresent
name: datadog-agent
ports:
- containerPort: 8125
hostPort: 8125
name: dogstatsdport
protocol: UDP
- containerPort: 8126
hostPort: 8126
name: traceport
protocol: TCP
env:
- name: GODEBUG
value: x509ignoreCN=0
- name: DD_API_KEY
valueFrom:
secretKeyRef:
name: 'datadog-api'
key: token
- name: DD_KUBERNETES_KUBELET_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: DD_HOSTNAME
value: 'intro-to-monitoring-k8s-host'
- name: KUBERNETES
value: 'yes'
- name: DD_LOG_LEVEL
value: 'INFO'
- name: DD_DOGSTATSD_PORT
value: '8125'
- name: DD_DOGSTATSD_NON_LOCAL_TRAFFIC
value: 'true'
- name: DD_LEADER_ELECTION
value: 'true'
- name: DD_COLLECT_KUBERNETES_EVENTS
value: 'true'
# - name: DD_APM_ENABLED
# value: 'true'
# - name: DD_APM_NON_LOCAL_TRAFFIC
# value: 'true'
- name: DD_LOGS_ENABLED
value: 'true'
- name: DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL
value: 'true'
- name: DD_LOGS_CONFIG_K8S_CONTAINER_USE_FILE
value: 'true'
- name: DD_LOGS_CONFIG_AUTO_MULTI_LINE_DETECTION
value: 'false'
- name: DD_HEALTH_PORT
value: '5555'
- name: DD_DOGSTATSD_SOCKET
value: '/var/run/datadog/dsd.socket'
- name: DD_EXPVAR_PORT
value: '6000'
volumeMounts:
- name: logdatadog
mountPath: /var/log/datadog
- name: tmpdir
mountPath: /tmp
readOnly: false
- name: config
mountPath: /etc/datadog-agent
- name: runtimesocketdir
mountPath: /host/var/run
mountPropagation: None
readOnly: true
- name: dsdsocket
mountPath: /var/run/datadog
- name: procdir
mountPath: /host/proc
mountPropagation: None
readOnly: true
- name: cgroups
mountPath: /host/sys/fs/cgroup
mountPropagation: None
readOnly: true
- name: pointerdir
mountPath: /opt/datadog-agent/run
mountPropagation: None
- name: logpodpath
mountPath: /var/log/pods
mountPropagation: None
readOnly: true
- name: logscontainerspath
mountPath: /var/log/containers
mountPropagation: None
readOnly: true
- name: logdockercontainerpath
mountPath: /var/lib/docker/containers
mountPropagation: None
readOnly: true
livenessProbe:
failureThreshold: 6
httpGet:
path: /live
port: 5555
scheme: HTTP
initialDelaySeconds: 15
periodSeconds: 15
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 6
httpGet:
path: /ready
port: 5555
scheme: HTTP
initialDelaySeconds: 15
periodSeconds: 15
successThreshold: 1
timeoutSeconds: 5
initContainers:
- name: init-volume
image: datadog/agent:7.31.1
imagePullPolicy: IfNotPresent
command: ['bash', '-c']
args:
- cp -r /etc/datadog-agent /opt
volumeMounts:
- name: config
mountPath: /opt/datadog-agent
resources: {}
- name: init-config
image: datadog/agent:7.31.1
imagePullPolicy: IfNotPresent
command: ['bash', '-c']
args:
- for script in $(find /etc/cont-init.d/ -type f -name '*.sh' | sort) ; do bash $script ; done
volumeMounts:
- name: logdatadog
mountPath: /var/log/datadog
- name: config
mountPath: /etc/datadog-agent
- name: procdir
mountPath: /host/proc
mountPropagation: None
readOnly: true
- name: runtimesocketdir
mountPath: /host/var/run
mountPropagation: None
readOnly: true
env:
# Needs to be removed when Agent N-2 is built with Golang 1.17
- name: GODEBUG
value: x509ignoreCN=0
- name: DD_API_KEY
valueFrom:
secretKeyRef:
name: 'datadog-api'
key: token
- name: DD_KUBERNETES_KUBELET_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: KUBERNETES
value: 'yes'
- name: DD_LEADER_ELECTION
value: 'true'
resources: {}
volumes:
- name: installinfo
configMap:
name: datadog-installinfo
- name: config
emptyDir: {}
- name: logdatadog
emptyDir: {}
- name: tmpdir
emptyDir: {}
- hostPath:
path: /proc
name: procdir
- hostPath:
path: /sys/fs/cgroup
name: cgroups
- hostPath:
path: /var/run/datadog/
type: DirectoryOrCreate
name: dsdsocket
- hostPath:
path: /var/run/datadog/
type: DirectoryOrCreate
name: apmsocket
- name: s6-run
emptyDir: {}
- hostPath:
path: /var/lib/datadog-agent/logs
name: pointerdir
- hostPath:
path: /var/log/pods
name: logpodpath
- hostPath:
path: /var/log/containers
name: logscontainerspath
- hostPath:
path: /var/lib/docker/containers
name: logdockercontainerpath
- hostPath:
path: /var/run
name: runtimesocketdir
tolerations:
affinity: {}
serviceAccountName: 'datadog-agent'
nodeSelector:
kubernetes.io/os: linux
updateStrategy:
rollingUpdate:
maxUnavailable: 10%
type: RollingUpdate