mirror of https://github.com/istio/istio.io.git
update peer metadata (#15965)
This commit is contained in:
parent
ee5acfe993
commit
1283d2405e
|
@ -101,21 +101,20 @@ For more information, see [Common Expression Language](https://opensource.google
|
||||||
Istio exposes all standard [Envoy attributes](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/advanced/attributes).
|
Istio exposes all standard [Envoy attributes](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/advanced/attributes).
|
||||||
Peer metadata is available as attributes `upstream_peer` for outbound and `downstream_peer` for inbound with the following fields:
|
Peer metadata is available as attributes `upstream_peer` for outbound and `downstream_peer` for inbound with the following fields:
|
||||||
|
|
||||||
|Field | Type | Value |
|
| Field | Type | Value |
|
||||||
|---|---|---|
|
|-------------|----------|------------------------------------------------------------|
|
||||||
| `name` | `string` | Name of the pod. |
|
| `app` | `string` | Application name. |
|
||||||
| `namespace` | `string` | Namespace that the pod runs in. |
|
| `version` | `string` | Application version. |
|
||||||
| `labels` | `map` | Workload labels. |
|
| `service` | `string` | Service instance. |
|
||||||
| `owner` | `string` | Workload owner. |
|
| `revision` | `string` | Service version. |
|
||||||
| `workload_name` | `string` | Workload name. |
|
| `name` | `string` | Name of the pod. |
|
||||||
| `platform_metadata` | `map` | Platform metadata with prefixed keys. |
|
| `namespace` | `string` | Namespace that the pod runs in. |
|
||||||
| `istio_version` | `string` | Version identifier for the proxy. |
|
| `type` | `string` | Workload type. |
|
||||||
| `mesh_id` | `string` | Unique identifier for the mesh. |
|
| `workload` | `string` | Workload name. |
|
||||||
| `app_containers` | `list<string>` | List of short names for application containers. |
|
| `cluster` | `string` | Identifier for the cluster to which this workload belongs. |
|
||||||
| `cluster_id` | `string` | Identifier for the cluster to which this workload belongs. |
|
|
||||||
|
|
||||||
For example, the expression for the peer `app` label to be used in an outbound configuration is
|
For example, the expression for the peer `app` label to be used in an outbound configuration is
|
||||||
`upstream_peer.labels['app'].value`.
|
`filter_state.downstream_peer.app` or `filter_state.upstream_peer.app`.
|
||||||
|
|
||||||
## Cleanup
|
## Cleanup
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue