Add example for proxy.istio.io/config annotation (#7348)

* Add example for proxy.istio.io/config annotation

* Code review comment

* Update content/en/docs/tasks/observability/distributed-tracing/configurability/index.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update content/en/docs/tasks/observability/distributed-tracing/configurability/index.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>
This commit is contained in:
jacob-delgado 2020-06-04 20:30:49 -06:00 committed by GitHub
parent 1d5fa543ef
commit c29007987c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 0 deletions

View File

@ -28,6 +28,35 @@ EOF
Then, you can append any configuration options to the `tracing.yaml` file.
## Add `proxy.istio.io/config` annotation to your Pod metadata specification
There are occasions where you may wish to override the mesh-wide configuration for a Pod-specific
setting. By adding the `proxy.istio.io/config` annotation to your Pod metadata
specification you can override any mesh-wide tracing settings.
For instance, to modify the `sleep` deployment shipped with Istio you would add the following
to `samples/sleep/sleep.yaml`:
{{< text yaml >}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: sleep
spec:
...
template:
metadata:
...
proxy.istio.io/config: |
tracing:
... # custom tracing definition
spec:
...
{{< /text >}}
You can then append any of the settings specified below, to change the tracing configuration
for this Pod specification.
## Trace sampling
Istio captures a trace for all requests by default when installing with the demo profile.