Routing and admission
- Control/data plane, listeners, route and cluster configuration, resource counters and capture precedence.
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
- 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
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
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.