Skip to content

Commit 0e643fc

Browse files
authored
Add global injection mode config for Datadog Operator 1.25.0 (#35598)
Made-with: Cursor
1 parent b4bbf9e commit 0e643fc

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

content/en/tracing/trace_collection/single-step-apm/kubernetes.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ SSI supports multiple injection modes, which control how the injector and APM li
164164
| Mode | Description | Requirements |
165165
|------|-------------|--------------|
166166
| `init_container` | Uses init containers to copy injector and APM library files into application containers. | Agent deployed with Helm Chart or Datadog Operator |
167-
| `csi` | **In Preview.** Mounts injector and APM library files using the [Datadog CSI driver][40]. Reduces pod startup time compared to init container mode. | Agent 7.76.0+, CSI driver 1.2.0+, Helm Chart 3.178.1+ |
167+
| `csi` | **In Preview.** Mounts injector and APM library files using the [Datadog CSI driver][40]. Reduces pod startup time compared to init container mode. | Agent 7.76.0+, CSI driver 1.2.0+, Helm Chart 3.178.1+ or Datadog Operator 1.25.0+ |
168168

169169
Before using `csi` mode, install and activate the Datadog CSI driver. If you are deploying with Helm, also set `datadog.csi.enabled: true` in your `datadog-values.yaml`. See the [CSI driver documentation][40] for installation steps and environment-specific requirements such as GKE Autopilot.
170170

@@ -187,7 +187,18 @@ Supported values: `init_container`, `csi`.
187187
{{% /tab %}}
188188
{{% tab "Datadog Operator" %}}
189189

190-
Datadog Operator does not support setting the injection mode globally. To override the injection mode for specific pods, use the [pod annotation](#configure-injection-mode-per-pod).
190+
To set the injection mode cluster-wide, add `injectionMode` to your `datadog-agent.yaml`:
191+
192+
```yaml
193+
features:
194+
apm:
195+
instrumentation:
196+
injectionMode: <mode>
197+
```
198+
199+
Supported values: `init_container`, `csi`.
200+
201+
If you are using Datadog Operator earlier than 1.25.0, use the [pod annotation](#configure-injection-mode-per-pod) to override the injection mode for specific pods.
191202

192203
{{% /tab %}}
193204
{{< /tabs >}}

0 commit comments

Comments
 (0)