Skip to content

Commit 8e30f1e

Browse files
authored
Update admission_controller.md
PR Fixes
1 parent 3b01ddc commit 8e30f1e

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

content/en/containers/cluster_agent/admission_controller.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,28 +129,39 @@ Finally, run the following commands:
129129
- `kubectl apply -f cluster-agent-deployment.yaml`
130130

131131
### APM and DogStatsD
132+
To configure and inject APM tracers libraries automatically, it requires the Datadog Agent v7.39+
132133

133-
To configure and inject APM tracers libraries and DogstatsD clients automatically:
134-
134+
Once the Cluster Agent is successfully installed, please do one of the following:
135135
- Add the label `admission.datadoghq.com/enabled: "true"` to your pod.
136136
- Configure the Cluster Agent admission controller by setting `mutateUnlabelled` (or `DD_ADMISSION_CONTROLLER_MUTATE_UNLABELLED`, depending on your configuration method) to `true`.
137137

138-
To opt-in your container for library injection, use Pod annotations inside your application's YAML file to specify which language tracers and should be injected, along with their versions.
138+
To opt-in your container for library injection, use Pod annotations inside your application's YAML file to specify language tracers and versions.
139+
139140

140141
The annotations are a `key: value` pair in the following format:
141142

142143
```yaml
143-
admission.datadoghq.com/<language>-tracer.version: <tracer-version>
144+
datadoghq.com/<language>-lib.version: <lib-version>
144145
```
145146
146-
Adding a this annotation means the tracer library for that language and version is injected into the containerized application. You can add several `<language>-tracer.version` annotations to inject multiple language tracers into one container.
147+
Adding a this annotation means the tracer library for that language and version is injected into the containerized application.
148+
Currently, the list of possible lib values include `java`, `node` and `python` respectively.
149+
150+
For example to inject the latest Java tracer:
151+
152+
```yaml
153+
annotations:
154+
datadoghq.com/java-lib.version: "latest"
155+
datadoghq.com/node-lib.version: "3.0.0"
156+
```
147157

148-
For example to inject the latest Java tracer and Ruby tracer version 1.4.0:
158+
If needed, you can add several `<language>-lib.version` annotations to inject multiple language tracers into one container.
149159

160+
For example to inject the latest Java tracer and Node tracer v3.0.0:
150161
```yaml
151162
annotations:
152-
admission.datadoghq.com/java-tracer.version: "latest"
153-
admission.datadoghq.com/ruby-tracer.version: "1.4.0"
163+
datadoghq.com/java-lib.version: "latest"
164+
datadoghq.com/node-lib.version: "3.0.0"
154165
```
155166

156167
To prevent pods from receiving environment variables, add the label `admission.datadoghq.com/enabled: "false"`. This works even if you set `mutateUnlabelled: true`.

0 commit comments

Comments
 (0)