1
+ # Source: datadog/templates/secrets.yaml
2
+ # API Key
3
+ apiVersion : v1
4
+ kind : Secret
5
+ metadata :
6
+ name : datadog-agent
7
+ labels : {}
8
+ type : Opaque
9
+ data :
10
+ api-key : PUT_YOUR_BASE64_ENCODED_API_KEY_HERE
11
+
12
+ # APP Key
13
+ ---
14
+ # Source: datadog/templates/install_info-configmap.yaml
15
+ apiVersion : v1
16
+ kind : ConfigMap
17
+ metadata :
18
+ name : datadog-agent-installinfo
19
+ labels : {}
20
+ annotations :
21
+ checksum/install_info : 0b4b93ab3a64d6b6dd8f6b9954ef7628e2faf03f1c6b5a0145077b1f281d21bc
22
+ data :
23
+ install_info : |
24
+ ---
25
+ install_method:
26
+ tool: kubernetes sample manifests
27
+ tool_version: kubernetes sample manifests
28
+ installer_version: kubernetes sample manifests
29
+ ---
30
+ # Source: datadog/templates/daemonset.yaml
1
31
apiVersion : apps/v1
2
32
kind : DaemonSet
3
33
metadata :
4
- name : datadog-agent-windows
34
+ name : datadog-agent
35
+ labels : {}
5
36
spec :
6
37
selector :
7
38
matchLabels :
8
- app : datadog-agent-windows
39
+ app : datadog-agent
9
40
template :
10
41
metadata :
11
42
labels :
12
- app : datadog-agent-windows
13
- name : datadog-agent-windows
43
+ app : datadog-agent
44
+ name : datadog-agent
45
+ annotations : {}
14
46
spec :
15
47
containers :
16
48
- name : agent
17
- image : " datadog/agent:latest "
18
- imagePullPolicy : Always
19
- command : ["agent", "start "]
49
+ image : " datadog/agent:7.23.0 "
50
+ imagePullPolicy : IfNotPresent
51
+ command : ["agent", "run "]
20
52
resources : {}
21
53
ports :
22
54
- containerPort : 8125
@@ -26,18 +58,26 @@ spec:
26
58
- name : DD_API_KEY
27
59
valueFrom :
28
60
secretKeyRef :
29
- name : " datadog-agent-windows "
61
+ name : " datadog-agent"
30
62
key : api-key
31
63
- name : DD_KUBERNETES_KUBELET_HOST
32
64
valueFrom :
33
65
fieldRef :
34
66
fieldPath : status.hostIP
35
67
- name : KUBERNETES
36
68
value : " yes"
69
+ - name : DD_AC_EXCLUDE
70
+ value : " name:datadog-agent"
71
+ - name : DOCKER_HOST
72
+ value : npipe:////./pipe/docker_engine
37
73
- name : DD_LOG_LEVEL
38
74
value : " INFO"
39
75
- name : DD_DOGSTATSD_PORT
40
76
value : " 8125"
77
+ - name : DD_LEADER_ELECTION
78
+ value : " true"
79
+ - name : DD_COLLECT_KUBERNETES_EVENTS
80
+ value : " true"
41
81
- name : DD_APM_ENABLED
42
82
value : " false"
43
83
- name : DD_LOGS_ENABLED
49
89
- name : DD_HEALTH_PORT
50
90
value : " 5555"
51
91
volumeMounts :
92
+ - name : config
93
+ mountPath : C:/ProgramData/Datadog
52
94
- name : runtimesocket
53
95
mountPath : \\.\pipe\docker_engine
54
96
- name : pointerdir
@@ -62,21 +104,27 @@ spec:
62
104
livenessProbe :
63
105
failureThreshold : 6
64
106
httpGet :
65
- path : /health
107
+ path : /live
66
108
port : 5555
109
+ scheme : HTTP
110
+ initialDelaySeconds : 15
111
+ periodSeconds : 15
112
+ successThreshold : 1
113
+ timeoutSeconds : 5
114
+ readinessProbe :
115
+ failureThreshold : 6
116
+ httpGet :
117
+ path : /ready
118
+ port : 5555
119
+ scheme : HTTP
67
120
initialDelaySeconds : 15
68
121
periodSeconds : 15
69
122
successThreshold : 1
70
123
timeoutSeconds : 5
71
124
- name : trace-agent
72
- image : " datadog/agent:latest"
73
- imagePullPolicy : Always
74
- command :
75
- [
76
- " trace-agent" ,
77
- " -foreground" ,
78
- " -config=C:/ProgramData/Datadog/datadog.yaml" ,
79
- ]
125
+ image : " datadog/agent:7.23.0"
126
+ imagePullPolicy : IfNotPresent
127
+ command : ["trace-agent", "-foreground", "-config=C:/ProgramData/Datadog/datadog.yaml"]
80
128
resources : {}
81
129
ports :
82
130
- containerPort : 8126
@@ -87,14 +135,18 @@ spec:
87
135
- name : DD_API_KEY
88
136
valueFrom :
89
137
secretKeyRef :
90
- name : " datadog-agent-windows "
138
+ name : " datadog-agent"
91
139
key : api-key
92
140
- name : DD_KUBERNETES_KUBELET_HOST
93
141
valueFrom :
94
142
fieldRef :
95
143
fieldPath : status.hostIP
96
144
- name : KUBERNETES
97
145
value : " yes"
146
+ - name : DD_AC_EXCLUDE
147
+ value : " name:datadog-agent"
148
+ - name : DOCKER_HOST
149
+ value : npipe:////./pipe/docker_engine
98
150
- name : DD_LOG_LEVEL
99
151
value : " INFO"
100
152
- name : DD_APM_ENABLED
@@ -103,40 +155,98 @@ spec:
103
155
value : " true"
104
156
- name : DD_APM_RECEIVER_PORT
105
157
value : " 8126"
158
+ volumeMounts :
159
+ - name : config
160
+ mountPath : C:/ProgramData/Datadog
161
+ - name : runtimesocket
162
+ mountPath : \\.\pipe\docker_engine
106
163
livenessProbe :
107
164
initialDelaySeconds : 15
108
165
periodSeconds : 15
109
166
tcpSocket :
110
167
port : 8126
111
168
timeoutSeconds : 5
112
169
- name : process-agent
113
- image : " datadog/agent:latest"
114
- imagePullPolicy : Always
115
- command :
116
- [
117
- " process-agent" ,
118
- " -foreground" ,
119
- " -config=C:/ProgramData/Datadog/datadog.yaml" ,
120
- ]
170
+ image : " datadog/agent:7.23.0"
171
+ imagePullPolicy : IfNotPresent
172
+ command : ["process-agent", "-foreground", "-config=C:/ProgramData/Datadog/datadog.yaml"]
121
173
resources : {}
122
174
env :
123
175
- name : DD_API_KEY
124
176
valueFrom :
125
177
secretKeyRef :
126
- name : " datadog-agent-windows "
178
+ name : " datadog-agent"
127
179
key : api-key
128
180
- name : DD_KUBERNETES_KUBELET_HOST
129
181
valueFrom :
130
182
fieldRef :
131
183
fieldPath : status.hostIP
132
184
- name : KUBERNETES
133
185
value : " yes"
186
+ - name : DD_AC_EXCLUDE
187
+ value : " name:datadog-agent"
188
+ - name : DOCKER_HOST
189
+ value : npipe:////./pipe/docker_engine
190
+ - name : DD_PROCESS_AGENT_ENABLED
191
+ value : " true"
134
192
- name : DD_LOG_LEVEL
135
193
value : " INFO"
194
+ - name : DD_ORCHESTRATOR_EXPLORER_ENABLED
195
+ value : " false"
136
196
volumeMounts :
197
+ - name : config
198
+ mountPath : C:/ProgramData/Datadog
137
199
- name : runtimesocket
138
200
mountPath : \\.\pipe\docker_engine
201
+ initContainers :
202
+ - name : init-volume
203
+ image : " datadog/agent:7.23.0"
204
+ imagePullPolicy : IfNotPresent
205
+ command : ["pwsh", "-Command"]
206
+ args :
207
+ - |
208
+ Copy-Item -Recurse -Force C:/ProgramData/Datadog C:/Temp
209
+ Copy-Item -Force C:/Temp/install_info/install_info C:/Temp/Datadog/install_info
210
+ volumeMounts :
211
+ - name : config
212
+ mountPath : C:/Temp/Datadog
213
+ - name : installinfo
214
+ mountPath : C:/Temp/install_info
215
+ resources : {}
216
+ - name : init-config
217
+ image : " datadog/agent:7.23.0"
218
+ imagePullPolicy : IfNotPresent
219
+ command : ["pwsh", "-Command"]
220
+ args :
221
+ - Get-ChildItem 'entrypoint-ps1' | ForEach-Object { & $_.FullName if (-Not $?) { exit 1 } }
222
+ volumeMounts :
223
+ - name : config
224
+ mountPath : C:/ProgramData/Datadog
225
+ - name : runtimesocket
226
+ mountPath : \\.\pipe\docker_engine
227
+ env :
228
+ - name : DD_API_KEY
229
+ valueFrom :
230
+ secretKeyRef :
231
+ name : " datadog-agent"
232
+ key : api-key
233
+ - name : DD_KUBERNETES_KUBELET_HOST
234
+ valueFrom :
235
+ fieldRef :
236
+ fieldPath : status.hostIP
237
+ - name : KUBERNETES
238
+ value : " yes"
239
+ - name : DD_AC_EXCLUDE
240
+ value : " name:datadog-agent"
241
+ - name : DOCKER_HOST
242
+ value : npipe:////./pipe/docker_engine
243
+ resources : {}
139
244
volumes :
245
+ - name : installinfo
246
+ configMap :
247
+ name : datadog-agent-installinfo
248
+ - name : config
249
+ emptyDir : {}
140
250
- hostPath :
141
251
path : \\.\pipe\docker_engine
142
252
name : runtimesocket
@@ -154,10 +264,15 @@ spec:
154
264
key : node.kubernetes.io/os
155
265
value : windows
156
266
operator : Equal
157
- serviceAccountName : datadog-agent-windows
267
+ affinity : {}
268
+ serviceAccountName : " datadog-agent"
158
269
nodeSelector :
159
270
kubernetes.io/os : windows
160
271
updateStrategy :
161
272
rollingUpdate :
162
273
maxUnavailable : 10%
163
- type : RollingUpdate
274
+ type : RollingUpdate
275
+
276
+ # Source: datadog/templates/containers-common-env.yaml
277
+ # The purpose of this template is to define a minimal set of environment
278
+ # variables required to operate dedicated containers in the daemonset
0 commit comments