Skip to content

Commit 86f9e00

Browse files
authored
Update SSI example in kubernetes.md (#29598)
* Update SSI example in kubernetes.md Example 5: Instrument a subset of pods using matchExpressions had the incorrect syntax. Updating to add missing `podSelector` level * Update kubernetes.md Fix bad YAML spacing
1 parent 339ca0e commit 86f9e00

File tree

1 file changed

+7
-6
lines changed
  • content/en/tracing/trace_collection/automatic_instrumentation/single-step-apm

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,13 @@ This configuration enables APM for all pods except those that have either of the
196196
enabled: true
197197
targets:
198198
- name: "default-target"
199-
matchExpressions:
200-
- key: app
201-
operator: NotIn
202-
values:
203-
- app1
204-
- app2
199+
podSelector:
200+
matchExpressions:
201+
- key: app
202+
operator: NotIn
203+
values:
204+
- app1
205+
- app2
205206
{{< /highlight >}}
206207

207208
{{< /collapse-content >}}

0 commit comments

Comments
 (0)