Configuration and capture

  • Separate proxy configuration distribution, imported service scope and packet interception.
100%

Istio sidecar mode · capture and accepted configuration

Configuration planeSelected workload · captured trafficApplicationConfiguration scope and packet capture are separate decisionsRequest / responseControl / statecompilexDS updateeffective statearrivecapturedforwardexcluded · bypass proxyVirtualService, DestinationRule and Sidecar configure different routing, destination and workload scopes; they are not interchangeable admission gates. A workload-selected Sidecar takes precedence over its namespace default. Multiple matching Sidecar resources are not a deterministic merge strategy.Istio resourcesIstiod combines service discovery and applicable configuration into the targeted proxy configuration. Control-plane distribution does not put Istiod on the application request path.IstiodInspect the running proxy listener, route and cluster state. A submitted API resource alone does not establish which configuration is active. An ACK indicates acceptance of that update, not successful forwarding through every dependent resource.Accepted proxyconfigurationThis example uses transparent sidecar interception. The effective capture rules decide whether the flow reaches Envoy. A direct path can bypass proxy enforcement when excluded from interception; configuring a route cannot capture that path.Network trafficPort, address and traffic-direction interception settings determine the captured path. Sidecar egress hosts scope imported configuration. They are not packet-capture exclusions or a complete outbound security boundary.Capture rulesA captured connection selects a listener/filter-chain context. Visible HTTP can then undergo route matching and HTTP policy. A TCP path or application-encrypted HTTPS payload does not acquire HTTP routing semantics merely by crossing this listener.Envoy listenerThe application accepts the selected protocol on its own listener. It still owns its worker, request and downstream-resource admission. A sidecar policy controls only traffic passing through that proxy and the resource it actually counts.Application socketcompilexDS updateeffective statearrivecapturedforwardexcluded · bypassproxy

Select a component to trace its direct connections. Drag to pan · Ctrl + wheel or pinch to zoom.

  • Istiod translates the selected Istio resources into listeners, routes and clusters for the workload proxy. The listeners that Envoy accepts determine how it handles arriving traffic.
  • Capture rules decide whether a connection reaches that listener. Removing a host from the Sidecar import list changes the proxy configuration. The same Pod can still intercept packets addressed to that host.
Control and data plane

Control and data plane

  • Istio configuration becomes listener, route and cluster state in Envoy.
  • A Kubernetes Service supplies destination selection; it is not another HTTP proxy hop.
Listeners, routes and clusters

Listeners, routes and clusters

  • A listener accepts traffic; HTTP route matching selects an upstream cluster.
  • A route name does not create a cluster. Several routes can share one cluster budget, or choose independent clusters.
  • Inserted routes need their own required descriptor actions, timeout and policy behavior; sibling routes do not supply inheritance.
Inbound admission counters

Inbound admission counters

Istio 1.21+ Sidecar API · Istio 1.22.6 / Envoy 1.30.7 example semantics

Configure the server-side proxy

The illustrative Sidecar selects an already-injected atlas-web workload with an associated Service on the application port, and configures its ordinary inbound HTTP pool. It does not create the Envoy container. The example uses 64 active requests and 16 pool-pending requests; these are teaching values, not workload sizing recommendations.

Illustrative native inbound pool policyyaml
# Illustrative workload policy for Istio 1.21+; values are not sizing advice.
# This resource configures an already-injected sidecar. It does not inject one.
apiVersion: networking.istio.io/v1beta1
kind: Sidecar
metadata:
  name: atlas-web-inbound
  namespace: example
spec:
  workloadSelector:
    labels:
      app: atlas-web
  inboundConnectionPool:
    http:
      http2MaxRequests: 64
      http1MaxPendingRequests: 16
  ingress:
  - port:
      number: 8080
      protocol: HTTP
      name: http-web
    defaultEndpoint: 127.0.0.1:8080

Match each field to its counter

Istio field Envoy threshold State counted
http2MaxRequests max_requests Active upstream HTTP requests; HTTP/1.1 and HTTP/2
http1MaxPendingRequests max_pending_requests Requests waiting for an available upstream pool connection
tcp.maxConnections max_connections Upstream connections

The 16-pending setting is not a FIFO queue of Java jobs behind 64 executing Java threads. A pool can need to establish connections, and application asynchronous work can outlive proxy request accounting.

Scope and rejection

The allowance belongs to one proxy, upstream cluster and priority. Worker-local pools share the cluster budget with eventual-consistency limits; replicas have separate budgets. Pool overflow can return 503 with UO. A token-bucket rate rejection and body-buffer rejection happen at different stages. This is neither a Java work manager nor a service-wide exact semaphore.

Version difference: before and after Istio 1.21

Istio 1.21 added Sidecar inbound pool settings so the server-side proxy can use limits different from client-side DestinationRule settings. Earlier Sidecar APIs do not supply these fields; do not copy the sample into an older CRD and assume it takes effect. Check both accepted configuration and proxy behavior on the actual build.

Configuration and capture scope

Configuration and capture scope

Istio 1.21+ Sidecar connection-pool API

Select a workload, then a port

workloadSelector chooses the workload proxies in the Sidecar resource’s namespace. The top-level inboundConnectionPool is their inbound default; a port’s ingress[].connectionPool takes precedence. Overlapping workload-selected Sidecar resources are not a way to combine budgets.

Configuration precedence

From highest to lowest: Sidecar per-port pool → Sidecar top-level inbound pool → DestinationRule per-port pool → DestinationRule top-level pool → generated defaults. The selected pool configuration overrides rather than merges field by field. A per-port object with only an active limit must not be assumed to inherit a pending limit from the top level.

Import scope is not packet capture

egress.hosts controls which service configurations are imported into the sidecar. Excluding a host from that configuration does not itself enforce a firewall rule or disable packet interception. Capture exclusions and unmatched-traffic behavior are separate controls. Inspect accepted inbound listeners and clusters for the selected workload before attributing traffic to this policy.