You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/security/cloud_security_management/setup/agent/kubernetes.md
+76Lines changed: 76 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,61 @@ Use the following instructions to enable Misconfigurations and Vulnerability Man
109
109
110
110
{{% /tab %}}
111
111
112
+
{{% tab "DaemonSet" %}}
113
+
114
+
1. Add the following environment variables to every Agent container in the `daemonset.yaml` file, including `agent`, `security-agent`, and `system-probe`. These variables enable Misconfigurations, Vulnerability Management, mount-based container image scanning, and runtime package tracking.
If your DaemonSet mounts the host root at a different path, set `HOST_ROOT` to that mount path in each Agent container.
136
+
137
+
2. Set `hostPID: true` in the pod spec and add the following `securityContext` to the `agent` container. These settings are required for mount-based container image scanning with `DD_SBOM_CONTAINER_IMAGE_USE_MOUNT=true`.
138
+
139
+
```yaml
140
+
# Source: datadog/templates/daemonset.yaml
141
+
apiVersion: apps/v1
142
+
kind: DaemonSet
143
+
[...]
144
+
spec:
145
+
[...]
146
+
template:
147
+
[...]
148
+
spec:
149
+
hostPID: true
150
+
containers:
151
+
[...]
152
+
- name: agent
153
+
[...]
154
+
securityContext:
155
+
capabilities:
156
+
add:
157
+
- SYS_ADMIN
158
+
readOnlyRootFilesystem: true
159
+
appArmorProfile:
160
+
type: Unconfined
161
+
```
162
+
163
+
3. Restart the Agent.
164
+
165
+
{{% /tab %}}
166
+
112
167
{{< /tabs >}}
113
168
114
169
**Note**: `enrichment.usage.enabled: true` is in Preview and requires Datadog Agent **7.79.0 or later**. From 7.79.0, runtime package tracking runs independently of [Workload Protection][8] and does not affect its usage. See the [Runtime Package Tracking](#runtime-package-tracking-preview) section for more details.
@@ -197,6 +252,27 @@ Restart the Agent.
197
252
198
253
{{% /tab %}}
199
254
255
+
{{% tab "DaemonSet" %}}
256
+
257
+
Set `hostPID: true` in the pod spec, and add the following environment variables to every Agent container in your `daemonset.yaml` file, including `agent`, `security-agent`, and `system-probe`:
0 commit comments