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/containers/cluster_agent/admission_controller.md
+19-8Lines changed: 19 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,28 +129,39 @@ Finally, run the following commands:
129
129
-`kubectl apply -f cluster-agent-deployment.yaml`
130
130
131
131
### APM and DogStatsD
132
+
To configure and inject APM tracers libraries automatically, it requires the Datadog Agent v7.39+
132
133
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:
135
135
- Add the label `admission.datadoghq.com/enabled: "true"` to your pod.
136
136
- Configure the Cluster Agent admission controller by setting `mutateUnlabelled` (or `DD_ADMISSION_CONTROLLER_MUTATE_UNLABELLED`, depending on your configuration method) to `true`.
137
137
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
+
139
140
140
141
The annotations are a `key: value` pair in the following format:
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
+
```
147
157
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.
149
159
160
+
For example to inject the latest Java tracer and Node tracer v3.0.0:
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