ELB for Envoy가 나오면서 Envoy를 직접 운영하지 않고도 Envoy의 L7 트래픽 제어를 쓸 수 있게 됐습니다. 아직 서비스 메시를 쓰지 않는 상황이라면, ELB for Envoy로 충분한지 메시까지 필요한지 판단하기 전에 Istio와 Envoy가 어떻게 생겼는지부터 알아야 하는데요. 이 글은 서비스 메시 개념부터 Istio의 컨트롤 플레인과 데이터 플레인, Envoy 설정과 xDS, 트래픽·보안 리소스, Gateway API와 Envoy Gateway까지 1시간 분량으로 정리하고, 마지막에 ELB for Envoy가 맡는 자리와 메시가 있어야 하는 자리를 나눠 봅니다.ELB for Envoy lets you use Envoy's L7 traffic control without running Envoy yourself. If you do not run a service mesh yet, you need to know how Istio and Envoy work before you can judge whether ELB for Envoy is enough or whether you need a mesh too. This post covers, in about an hour, what a service mesh is, Istio's control plane and data plane, Envoy config and xDS, the traffic and security resources, and Gateway API with Envoy Gateway. It ends by separating what ELB for Envoy takes on from what still needs a mesh.
BackendTLSPolicy)이고, 서비스끼리의 mTLS는 istiod CA와 사이드카가 맡는 메시 기능입니다.Two kinds of mTLS: gateway → backend mTLS is gateway config (BackendTLSPolicy); mTLS between services is a mesh feature run by the istiod CA and the sidecars.In November 2026 AWS made ELB for Envoy generally available. It is a new load balancer type that runs open-source Envoy proxies for you: AWS handles patching, scaling and capacity across Availability Zones (AZs), and you bring your Envoy configuration[15]. Envoy extensions such as WebAssembly, Lua and external processing work too, and on Amazon EKS you can connect it to Envoy Gateway and configure it with Gateway API resources[15][16]. You get Envoy's L7 traffic control without running Envoy yourself.
Envoy also brings a service mesh such as Istio to mind. If you have not adopted a mesh yet, or are weighing one, you will want to know whether ELB for Envoy is enough or whether you need a mesh as well. To answer that, you first need to know what a mesh looks like. The Istio docs spread the concepts across feature pages, so the big picture is hard to get from them.
This post is meant to let someone new to Istio answer these questions in about an hour.
This is a study guide built from the official Istio, Envoy, Kubernetes Gateway API and AWS docs, not a test report. A post that moves an Istio Ingress Gateway to ELB for Envoy and goes deeper is listed under Further reading.
The sections add up to about an hour. Skim the twelve figures first and it goes faster.
| Order | Section | Time | After it you can |
|---|---|---|---|
| 0 | First, what is a service mesh? | 5 min | say what a service mesh takes out of the application |
| 1 | The big picture: data plane and control plane | 8 min | explain why Istio uses Envoy and how istiod, the agent and Envoy connect |
| 2 | Envoy basics: listener, route, cluster, endpoint and xDS | 8 min | explain what STRICT_DNS, EDS and file-based xDS mean |
| 3 | How the sidecar gets in and how traffic is captured | 5 min | tell what "a proxy on the backend or not" means |
| 4 | Traffic management CRDs: Gateway, VirtualService, DestinationRule | 10 min | explain how a subset canary becomes Envoy config |
| 5 | Security: workload identity, PeerAuthentication, AuthorizationPolicy | 7 min | tell gateway mTLS from mesh mTLS |
| 6 | Kubernetes Gateway API and Envoy Gateway | 7 min | read the table that maps Istio resources to Gateway API |
| 7 | EnvoyFilter and rate limits | 5 min | read a per-Pod 100 TPS EnvoyFilter line by line |
| 8 | What value does ELB for Envoy add? | 5 min | tell the operations work ELB for Envoy takes off you from the places that still need a mesh |
Spend about three minutes on the Self-check at the end.
00
Once an application is split into many services, those services call each other over the network. Every call needs the same care: send it again when it fails (retries), give up when it takes too long (timeouts), send only some traffic to a new version (canary), encrypt the connection and check who is on the other end (mTLS), and record how often you called and how long it took (metrics).
A service mesh moves this work out of the application into an infrastructure layer. The Istio docs define a service mesh as "an infrastructure layer that gives applications capabilities like zero-trust security, observability, and advanced traffic management, without code changes"[18]. Without a mesh, each service builds these features into its own code or language-specific libraries; with a mesh, a proxy next to each app takes them over (inferred).
Figure 1. A service mesh moves retries, TLS and metrics out of app code into proxies next to each app.
| What Istio provides | Examples |
|---|---|
| Traffic management | Canary deployments, A/B testing, load balancing, failure recovery |
| Security | mTLS encryption, policy management, access control based on workload identity |
| Observability | Generates telemetry inside the mesh and integrates with tools such as Prometheus and Grafana |
The rows come from Istio's own overview page[18].
A mesh works in two layers. A proxy next to each app (Istio uses Envoy) handles the actual traffic, and a central control plane sends configuration to those proxies. The proxy runs either as a sidecar inside the Pod or in ambient mode[18]. The next sections go through the two layers one at a time.
At the edge of the mesh sits one more proxy that accepts traffic from outside. That is the ingress gateway, and Istio configures its ports and TLS with the Gateway resource[2]. The ingress gateway is where ELB for Envoy overlaps with Istio. How it splits from the features inside the mesh, such as service-to-service mTLS and per-Pod policies, is covered in What value does ELB for Envoy add?.
01
Istio has two parts. The data plane receives and forwards the actual requests, and it is made of Envoy proxies. The control plane tells those proxies how to route, and that is istiod[1].
Figure 2. Istio architecture: istiod is the control plane; Envoy sidecars and gateways form the data plane that every request passes through.
Istio's data plane proxy is Envoy, more precisely an extended version of it: a high-performance proxy written in C++ that mediates all inbound and outbound traffic for every service in the mesh[1]. There are three reasons.
I think the third reason matters most. Because the data plane (Envoy) and the control plane (whoever serves xDS) meet at one API, a setup like ELB for Envoy becomes possible: AWS runs Envoy, and xDS comes from somewhere else (inferred).
Figure 3. Istio's control plane (istiod) and data plane (Envoy in gateways and in each Pod's istio-proxy), and how config flows.
| Plane | Component | Where it runs | What it does |
|---|---|---|---|
| Control plane | istiod | One Deployment in the cluster, a single binary | Service discovery, turns rules into Envoy config sent over xDS, signs certificates as the CA, sidecar injection webhook |
| Data plane | Sidecar Envoy | The istio-proxy container in each Pod | Handles traffic into and out of the Pod |
| Data plane | Istio agent (pilot-agent) | The same istio-proxy container | Bootstraps Envoy and relays the xDS connection to istiod and certificates (SDS) |
| Data plane | Ingress and egress gateways | Standalone Envoy at the mesh edge | Traffic entering and leaving the mesh; Gateway resources apply here |
Sources: istiod's role[1], the agent bootstrapping Envoy in the sidecar or gateway container[20], the agent handing certificates to Envoy over SDS[3], and Gateway applying to standalone Envoy proxies at the edge rather than to sidecars[2]. In ambient mode, per-node ztunnel and waypoint proxies take the sidecar's place (covered in How the sidecar gets in and how traffic is captured).
If older material mentions Pilot, Galley or Citadel, read them as features that Istio 1.5 merged, together with the sidecar injector, into the single istiod binary[21].
Remember istiod as three jobs[1].
| Job | What it means |
|---|---|
| Service discovery | Reads Kubernetes Services and Pods to learn which endpoints sit behind each destination |
| Config translation and delivery | Turns high-level rules such as VirtualService into Envoy config and pushes it to the proxies at runtime |
| Certificate management | Acts as a CA (Certificate Authority) and issues certificates for mTLS (mutual TLS) in the data plane |
kubectl apply a resource such as a VirtualService, and the Kubernetes API stores it.This split is also the starting point for ELB for Envoy. ELB for Envoy is a service in which AWS runs Envoy, the data plane, and the config comes from the Envoy configuration you bring or from a control plane[15]. On EKS, Envoy Gateway plays that control plane role[16].
02
Whether you use ELB for Envoy or Istio, you end up working with Envoy config, so here is a closer look at Envoy. Read its config as four blocks, in the order a request passes through them.
Figure 4. Envoy configuration: listener, route, cluster and endpoints, each delivered by its own xDS API.
| Block | What it decides | xDS that delivers it |
|---|---|---|
| Listener | Which port to accept on and which filter chain to run | LDS (Listener Discovery Service) |
| Route | Which cluster to send to, based on host, path and headers, and with what weights | RDS (Route Discovery Service) |
| Cluster | The group of upstream targets, load balancing, connection pool, TLS | CDS (Cluster Discovery Service) |
| Endpoint | The actual IP:port list in a cluster | EDS (Endpoint Discovery Service) |
| Secret | Certificates and private keys | SDS (Secret Discovery Service) |
xDS is the collective name for these discovery services. ADS (Aggregated Discovery Service) carries every resource type over one gRPC stream in a fixed order, and it is gRPC-only. The Envoy docs say an RDS update swaps routes in without affecting requests in flight, and CDS adds, updates and removes clusters[10].
Envoy has six ways for a cluster to find its endpoints, and three of them come up most often[11].
| Type | Behavior | When to use it |
|---|---|---|
STATIC | IP:port written directly in the config | Targets that rarely change. Someone has to edit it when Pods change |
STRICT_DNS | Keeps re-resolving the DNS name asynchronously and treats every returned IP as its own host. dns_refresh_rate defaults to 5000 ms | Give it a headless Service name and every Ready Pod IP becomes a host |
EDS | An xDS server sends the endpoint list, with attributes such as weights | What Istio and Envoy Gateway use. Pod changes show up at once |
Figure 5. How an Envoy cluster finds its endpoints: STATIC, STRICT_DNS and EDS.
A headless Service (clusterIP: None) answers DNS with the list of Ready Pod IPs instead of a Service IP. So STRICT_DNS + headless Service + ROUND_ROBIN splits traffic as "the same share per Ready Pod". The bars at the bottom of the figure are a worked example. Say you are moving from on-premises to EKS, and you put 50 on-premises hosts and some EKS Pods into one cluster with ROUND_ROBIN. The EKS share is then Pods / (Pods + 50). With 10, 50 or 300 Pods that is 16.7%, 50% or 85.7%, so adding Pods alone shifts traffic to EKS.
You do not always need an xDS server. Envoy can read LDS and CDS from file paths set in the bootstrap's dynamic_resources. Editing the file in place is not picked up; Envoy reloads only when a new file is moved into place[12]. This is easy to miss when you try it yourself, so check it.
A listener holds a filter chain. HTTP handling happens inside envoy.filters.network.http_connection_manager (HCM), where HTTP filters run in order. The last one is always envoy.filters.http.router, which forwards the request upstream. An example that inserts the rate limit filter (local_ratelimit) in front of the router is in EnvoyFilter and rate limits.
03
Figure 6. Automatic sidecar injection and how iptables sends Pod traffic through the istio-proxy.
Label a namespace istio-injection=enabled (or with a revision label istio.io/rev=<rev>) and a mutating admission webhook adds the istio-proxy container to every Pod created there afterwards. The Deployment itself does not change; injection happens when the Pod is created, so running Pods get a sidecar only after they are recreated. An injected Pod goes from READY 1/1 to 2/2, and an istio-init container sets up the traffic redirect[4].
Once istio-init has installed its iptables rules, everything the app sends and receives goes through the sidecar Envoy. These are the ports worth knowing[5].
| Port | Use |
|---|---|
| 15001 | Envoy outbound (traffic the app sends out) |
| 15006 | Envoy inbound (traffic coming into the Pod) |
| 15008 | HBONE (HTTP-Based Overlay Network Environment) mTLS tunnel (ambient) |
| 15021 | Health checks |
| 15090 | Envoy Prometheus metrics |
| 15012 | istiod xDS and CA services (TLS/mTLS) |
SIDECAR_INBOUND, which you see often in EnvoyFilters, refers to the 15006 side, where the sidecar receives requests coming into the Pod. It means the sidecar inside the Pod can process a request once more, after the gateway has sent it to the Pod and before it reaches the app. That is why features such as per-Pod rate limits are possible only in the sidecar.
Ambient mode puts no sidecar in the Pod. It runs an L4 proxy, ztunnel, on every node, and adds a waypoint proxy (Envoy) when L7 is needed. ztunnel handles mTLS, L4 authorization and telemetry and does not parse HTTP headers[6]. This post explains sidecar mode, so this is all you need about ambient for now.
04
These are the first resources you meet in Istio. Start with what each one owns[2].
| Resource | What it owns | Envoy counterpart (inferred) |
|---|---|---|
Gateway (networking.istio.io) | Port, protocol, TLS and accepted hosts of an edge proxy. L4 to L6 | Listener |
VirtualService | Path and header matching, how much traffic goes to which destination, retries and timeouts | Route |
DestinationRule | Policy applied after routing: subsets, load balancing, connection pool, outlier detection (circuit breaking), TLS | Cluster |
ServiceEntry | Adds destinations outside the mesh to Istio's registry | Cluster + Endpoint |
Sidecar (resource) | Narrows the ports a sidecar accepts and the destinations it must know | Size of sidecar config |
The "Envoy counterpart" column is a study aid. It does not mean istiod translates exactly one to one.
An Istio Gateway sets only ports and TLS. L7 routing works only when a VirtualService binds to that Gateway through its gateways field[2]. An Istio Gateway also only configures a gateway Deployment that already exists (for example istio-ingressgateway), which it picks with selector[7]. This is how it differs from the Gateway API Gateway later on.
Take an order API as an example. Written in Istio it looks roughly like this: stable/canary subsets are split by label and get 95:5.
apiVersion: networking.istio.io/v1
kind: Gateway
metadata: {name: public-gw, namespace: istio-ingress}
spec:
selector: {istio: ingressgateway} # picks the gateway Pods that already run
servers:
- port: {number: 443, name: https, protocol: HTTPS}
hosts: ["api.example.com"]
tls: {mode: SIMPLE, credentialName: api-cert} # TLS Secret name; Istio's example creates it in istio-system, where the gateway runs
---
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata: {name: order-api, namespace: order}
spec:
hosts: ["api.example.com"]
gateways: ["istio-ingress/public-gw"] # without this line it is not bound to the Gateway
http:
- match: [{uri: {prefix: /orders}}]
route:
- destination: {host: api.order.svc.cluster.local, subset: stable}
weight: 95
- destination: {host: api.order.svc.cluster.local, subset: canary}
weight: 5
---
apiVersion: networking.istio.io/v1
kind: DestinationRule
metadata: {name: order-api, namespace: order}
spec:
host: api.order.svc.cluster.local
trafficPolicy:
connectionPool: {http: {http1MaxPendingRequests: 100}}
outlierDetection: {consecutive5xxErrors: 5, interval: 10s, baseEjectionTime: 30s}
subsets:
- name: stable
labels: {version: stable}
- name: canary
labels: {version: canary}Figure 7. How istiod turns Gateway, VirtualService and DestinationRule into Envoy listener, route and clusters.
A subset is "the Pods of one Service, split again by label". istiod builds a separate Envoy cluster per subset and filters each cluster's endpoints by label (inferred: istioctl proxy-config cluster shows one cluster per subset). Anything that sees only the Kubernetes Service cannot see this split. So when you move to Gateway API, you split the subsets into "two Services with different labels", which comes up again in Kubernetes Gateway API and Envoy Gateway.
05
Figure 8. How a sidecar gets its SPIFFE certificate, and gateway mTLS versus mesh mTLS.
An Istio workload identity is a SPIFFE (Secure Production Identity Framework For Everyone) URI: spiffe://<trust domain>/ns/<namespace>/sa/<service account>. The certificate arrives like this[3].
istiod issues these certificates per service account, so a proxy outside the mesh does not join this system on its own (inferred). Keep this in mind when you put an external gateway such as ELB for Envoy in front.
| Mode | Meaning |
|---|---|
PERMISSIVE | Accepts both mTLS and plaintext |
STRICT | Accepts mTLS only |
DISABLE | mTLS off |
An unset mode inherits from the parent scope, and a mesh-wide policy with no mode defaults to PERMISSIVE[3].
This matters because when a Pod is STRICT, requests from clients that cannot present a mesh identity certificate are rejected. Sending straight from a gateway outside the mesh to a STRICT Pod needs its own design for identity and certificates on that segment (inferred).
An AuthorizationPolicy picks target workloads with selector and writes rules with from.source.principals (the caller's SPIFFE identity), methods and paths, and when conditions. Its actions are CUSTOM, DENY and ALLOW, evaluated in that order[3]. Principal-based rules only mean something when an identity was verified over mTLS, so read them together with mesh mTLS (inferred).
mTLS shows up in two places, which is easy to confuse. Keep them apart like this.
| Segment | Who presents certificates | Who manages it |
|---|---|---|
| Gateway ↔ backend mTLS | The gateway presents a client certificate and checks the backend's server certificate by CA and SAN (Subject Alternative Name) | Gateway config (in Gateway API: BackendTLSPolicy + the Gateway's client certificate) |
| Mesh mTLS | Sidecars present SPIFFE certificates to each other | istiod CA, PeerAuthentication |
The gateway-segment settings come back with BackendTLSPolicy in Kubernetes Gateway API and Envoy Gateway[13].
06
Istio supports the Kubernetes Gateway API and says it intends to make it the default API for traffic management. The Istio docs point out three differences[7].
Gateway only configures a gateway that was deployed beforehand; a Gateway API Gateway configures and deploys one. Create a Gateway with gatewayClassName: istio and a Deployment and Service named <Gateway name>-<GatewayClass name> appear.VirtualService carried every protocol, Gateway API splits them into per-protocol resources such as HTTPRoute and TCPRoute.Figure 9. Istio Gateway only configures a pre-installed gateway; a Gateway API Gateway also deploys one.
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata: {name: gateway, namespace: istio-ingress}
spec:
gatewayClassName: istio
listeners:
- name: default
hostname: "*.example.com"
port: 80
protocol: HTTP
allowedRoutes: {namespaces: {from: All}}
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata: {name: http, namespace: default}
spec:
parentRefs: [{name: gateway, namespace: istio-ingress}]
hostnames: ["httpbin.example.com"]
rules:
- matches: [{path: {type: PathPrefix, value: /get}}]
backendRefs: [{name: httpbin, port: 8000}]This example is from the Istio docs[7]. Weights go on each backendRefs entry as weight, and the target is a Service, so instead of the subsets you saw earlier you split into two Services. A blue/green move such as 100:0 → 95:5 → 50:50 → 0:100 works this way.
A BackendTLSPolicy attaches to a Service and sets the SNI the gateway uses toward the backend and how the backend certificate is verified. It needs a hostname and caCertificateRefs (or wellKnownCACertificates), and it has been in the Standard Channel since v1.4.0. The client certificate the gateway presents to backends is set with tls.backend.clientCertificateRef on the Gateway, and it applies to every upstream connection of that Gateway. It has been in the Standard Channel since v1.5.0[13].
Envoy Gateway reads Gateway API resources and turns them into Envoy xDS. Think of it as sitting where istiod sits in Istio (inferred). Features missing from the Gateway API standard come from its own policy resources[14].
| Envoy Gateway resource | What it owns |
|---|---|
BackendTrafficPolicy | Gateway → backend: circuit breaking, local and global rate limits, retries, load balancing, health checks |
ClientTrafficPolicy | Client → gateway: connection behavior, timeouts, TLS |
SecurityPolicy | Authentication and authorization such as JWT, CORS, IP filtering |
EnvoyProxy | How Envoy is deployed, telemetry, infrastructure provider settings |
The Kubernetes integration of ELB for Envoy sits on top of this. Envoy Gateway runs in the cluster as the xDS control plane, a remote infrastructure provider calls the ELB for Envoy API to create the proxy, and AWS runs the proxy fleet. If you already use Envoy Gateway, your Gateway API resources and control plane stay; only the place where Envoy runs changes[16]. A Gateway moves to ELB for Envoy when you attach an ELBProxyConfiguration resource, which carries the proxy's IAM role, subnets and security groups. AWS marks this integration as early development (API version v1alpha1)[17]. ELB for Envoy became generally available on 2026-11-25 and is offered in 14 Regions, Tokyo among them[15].
Figure 10. ELB for Envoy on EKS: Envoy Gateway stays in the cluster as the xDS control plane and AWS runs the Envoy fleet.
If you move a gateway from the mesh to Gateway API, keep this table next to you[2][7][13][14].
| Istio | Gateway API / Envoy Gateway | Note |
|---|---|---|
Gateway (port, host, TLS) | Gateway listeners | The Gateway API version also deploys |
VirtualService (path, header, weight) | HTTPRoute | Weights target Services, not subsets |
DestinationRule subset | Separate Services with different labels | Pod-label canary does not move as is |
DestinationRule connection pool, outlier detection | BackendTrafficPolicy | Envoy Gateway extension |
DestinationRule TLS | BackendTLSPolicy + Gateway client certificate | |
EnvoyFilter | No general equivalent | Config on the sidecar inside the Pod cannot move |
PeerAuthentication, AuthorizationPolicy | No equivalent (mesh features) | Stay in Istio if you keep the mesh |
07
EnvoyFilter patches the Envoy config istiod generates. The Istio docs warn that the API is tied deeply to Istio's internals and to Envoy's xDS API, that it must be checked for deprecated fields on every proxy upgrade, and that conflicting EnvoyFilters give undefined behavior. You choose where to patch with context (SIDECAR_INBOUND, SIDECAR_OUTBOUND, GATEWAY, ANY) and applyTo (HTTP_FILTER, CLUSTER, HTTP_ROUTE and others), and how with operations such as MERGE, INSERT_BEFORE and REPLACE[8].
Figure 11. Local rate limits keep a bucket per proxy; global rate limits share one counter in a rate limit service.
| Type | Behavior | Where it applies |
|---|---|---|
Local (local_ratelimit) | Each proxy instance has its own token bucket and calls no other service | On sidecars, each Pod gets its own limit; on a gateway, the limit is per gateway |
| Global | Asks an external rate limit service for quota over gRPC; descriptors classify requests | Several destinations share one limit. Not supported in the EKS integration of ELB for Envoy |
The Istio docs also describe local limits as applied per service instance without calling another service, and global limits as quota from a gRPC rate limit service[9]. The AWS docs say global rate limiting is not supported with the Envoy Gateway integration of ELB for Envoy, so use local rate limiting instead[17].
This example puts "at most 100 requests per second for each order/api Pod" on the sidecar. Each line that matters has a comment.
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata: {name: api-inbound-100rps, namespace: order}
spec:
workloadSelector:
labels: {app: api} # only sidecars of app=api Pods in namespace order
configPatches:
- applyTo: HTTP_FILTER # touch the HTTP filter list
match:
context: SIDECAR_INBOUND # traffic coming into the Pod (15006)
listener:
portNumber: 8080 # requests to app port 8080
filterChain:
filter:
name: envoy.filters.network.http_connection_manager
subFilter: {name: envoy.filters.http.router}
patch:
operation: INSERT_BEFORE # insert right before the router
value:
name: envoy.filters.http.local_ratelimit
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit
stat_prefix: order_api_inbound
token_bucket: # refill 100 every second, hold at most 100
max_tokens: 100
tokens_per_fill: 100
fill_interval: 1s
filter_enabled: # evaluate 100% of requests
default_value: {numerator: 100, denominator: HUNDRED}
filter_enforced: # and actually reject (429) 100% of the excess
default_value: {numerator: 100, denominator: HUNDRED}
response_headers_to_add:
- header: {key: x-order-pod-limit, value: "true"}
append_action: OVERWRITE_IF_EXISTS_OR_ADDEach sidecar has its own token bucket, so the service-wide limit grows with the Pod count. And because this config lives on the sidecar inside the Pod, it cannot move to a gateway outside the Pod, ELB for Envoy included.
08
As the earlier sections show, Envoy can do a lot, and running it yourself takes just as much work. ELB for Envoy hands that work to AWS. In terms of the data plane and control plane, only the place where Envoy runs moves to AWS; you still send the config as before[15].
AWS describes platform teams that run Envoy themselves as owning upgrades, security patching and capacity across Availability Zones (AZs), and says ELB for Envoy takes on that work[15]. The same holds on EKS. Envoy Gateway normally runs Envoy as Pods in your cluster, so sizing, scaling, upgrades and CVE patching are all yours. With ELB for Envoy attached, AWS runs those Envoy proxies for you[17].
| Work | Running Envoy yourself | With ELB for Envoy |
|---|---|---|
| Upgrades, security patching | You | AWS[15] |
| AZ capacity, scaling | You (replica and autoscaling settings) | AWS. Kubernetes replica and autoscaling settings do not apply[15][17] |
| Isolation | You design it | Dedicated EC2 instances per load balancer, hardware isolation from the Nitro System[15] |
| Subnets, security groups | You | The EKS integration controller uses the subnets it discovers or you name, and creates and maintains security groups[17] |
| Routing and policy | Gateway API + Envoy Gateway | Still Gateway API + Envoy Gateway[17] |
On isolation, the AWS announcement says a zero-day in Envoy stays contained to your load balancer[15].
Managed does not mean fewer features. You can bring your existing Envoy configurations, extensions and control planes as they are, and add your own logic with WebAssembly, Lua or external processing[15]. AWS names three uses[15].
On EKS, Envoy Gateway keeps serving xDS from inside the cluster, and only the proxy runs on ELB for Envoy (Where ELB for Envoy fits in this picture). Because the proxy sits outside the cluster, four things change[17].
v1alpha1).Mapped onto Istio's architecture, ELB for Envoy takes the place of the ingress gateway at the mesh edge. It does not replace the sidecar next to each Pod or the ztunnel on each node (inferred).
| Feature | At the gateway (ELB for Envoy) | Needs a mesh (sidecar or ztunnel) |
|---|---|---|
| Path and header routing, weighted splits | Yes (route config) | When calls between services need the same control |
| TLS, gateway → backend mTLS | Yes (BackendTLSPolicy + Gateway client certificate)[13] | For mTLS between services with SPIFFE identities[3] |
| Rate limits | Local limits per gateway. Global limits are not supported[17] | Separate limits per Pod (sidecar SIDECAR_INBOUND)[8] |
Workload identity, AuthorizationPolicy | Not applicable | Needs the istiod CA and sidecars[3] |
Istio CRDs (VirtualService, DestinationRule, EnvoyFilter) | Must be rewritten as Gateway API or Envoy config | Turning Istio CRDs into Envoy config is istiod's job[1] |
Figure 12. Where ELB for Envoy fits and what still needs a mesh.
Here is my own take (inferred). If you have no mesh yet and what you need now is L7 routing, weighted rollouts, backend mTLS and per-gateway rate limits at the cluster entrance, ELB for Envoy with Envoy Gateway is a reasonable place to start, without the burden of running Envoy yourself. Once you need mTLS and workload identity between services, authorization between services, or per-Pod policies, that is the time to look at a mesh seriously. Istio supports Gateway API too, so the Gateway API routing you learn along the way still applies after you adopt a mesh.
A post that moves Istio Ingress Gateway features to ELB for Envoy one by one and measures them is listed under Further reading. If you are planning a real migration, read it next.
If these answers come to you right away, this post has done its job.
1. Why can't ELB for Envoy read a VirtualService as is?
Answer: Turning a VirtualService into Envoy config is the job of istiod (the control plane), and ELB for Envoy is a service that runs Envoy (the data plane). The config has to come separately over xDS, from your own control plane or Envoy Gateway.
2. Why does a headless Service + STRICT_DNS split traffic in proportion to the Pod count?
Answer: A headless Service answers DNS with the Ready Pod IP list, and STRICT_DNS adds every IP in the answer as its own host. With ROUND_ROBIN on top, each host (= Pod) gets the same share.
3. What must change when you move a DestinationRule subset canary to Gateway API?
Answer: HTTPRoute weights target Services, so split stable/canary into two Services with different labels and set a weight on each backendRefs entry.
4. What happens when a gateway outside the mesh sends plaintext to a Pod with PeerAuthentication STRICT?
Answer: STRICT accepts only mTLS, so the request is rejected. Gateway-segment mTLS (BackendTLSPolicy and so on) is a different system from mesh SPIFFE identities, so you have to line them up yourself.
5. A sidecar local_ratelimit of 100/s on 3 Pods gives what service-wide limit?
Answer: About 300/s, because each Pod has its own token bucket. To hold the whole service to one limit you need a global limit (an external rate limit service).
6. Which parts of running Envoy leave your hands with ELB for Envoy?
Answer: AWS takes over upgrades and security patching, AZ capacity and scaling. You still set routing and policy with Gateway API and Envoy Gateway.
To fit an hour, these topics are left out. If you are seriously evaluating a mesh, they are good next steps.
| Topic | In one line |
|---|---|
| Ambient mode in depth | How per-node ztunnel, waypoint and HBONE tunnels replace the sidecar |
| Multi-cluster | Joining several clusters into one mesh |
| Egress gateway in detail | Sending traffic that leaves the mesh through one place |
| Upgrades | Running istiod revisions side by side and moving over |
| Observability tools | Connecting to tools such as Prometheus and Grafana |
2026년 11월에 AWS가 ELB for Envoy를 정식 출시했는데요. 오픈소스 Envoy 프록시를 AWS가 대신 운영해 주는 새 로드밸런서 유형이라서, 패치와 확장, 가용 영역(AZ)별 용량은 AWS가 맡고 사용자는 Envoy 설정만 가져오면 됩니다[15]. WebAssembly, Lua, external processing 같은 Envoy 확장도 쓸 수 있고, Amazon EKS에서는 Envoy Gateway와 연결해 Gateway API 리소스로 설정할 수 있습니다[15][16]. Envoy를 직접 띄우고 관리하지 않아도 Envoy의 L7 트래픽 제어를 쓸 수 있게 된 셈입니다.
그런데 Envoy라는 이름을 들으면 Istio 같은 서비스 메시가 자연스럽게 같이 떠오르거든요. 아직 서비스 메시를 도입하지 않았거나 도입을 고민하고 있다면 "ELB for Envoy로 충분한지, 메시까지 필요한지"를 따져 봐야 할 텐데요. 그러려면 먼저 메시가 어떻게 생겼는지 알아야 합니다. 막상 Istio 공식 문서를 펼쳐 보면 개념이 기능별로 흩어져 있어서 큰 그림을 잡기가 쉽지 않았습니다.
그래서 Istio를 처음 보는 분이 1시간 안에 아래 질문에 답할 수 있도록 정리해 보려고 합니다.
직접 테스트한 결과가 아니라 Istio, Envoy, Kubernetes Gateway API, AWS 공식 문서를 기준으로 정리한 학습 글입니다. ELB for Envoy로 Istio Ingress Gateway를 직접 옮겨 보며 더 깊이 다룬 글은 마지막 더 볼 만한 자료에 소개해 두었습니다.
전체를 다 읽으면 1시간쯤 걸리도록 나눴습니다. 그림 12개를 먼저 훑고 본문을 읽으면 시간이 더 줄어들 거예요.
| 순서 | 섹션 | 시간 | 다 읽고 나면 할 수 있는 것 |
|---|---|---|---|
| 0 | 먼저, 서비스 메시가 뭔가 | 5분 | 서비스 메시가 무엇을 앱 밖으로 빼내는지 말할 수 있다 |
| 1 | 큰 그림: 데이터 플레인과 컨트롤 플레인 | 8분 | Istio가 Envoy를 쓰는 이유와 istiod, agent, Envoy가 어떻게 연결되는지 말할 수 있다 |
| 2 | Envoy 기초: listener, route, cluster, endpoint와 xDS | 8분 | STRICT_DNS, EDS, 파일 기반 xDS가 무슨 뜻인지 안다 |
| 3 | 사이드카는 어떻게 붙고 트래픽은 어떻게 빨려 들어가나 | 5분 | "백엔드에 프록시가 있다/없다"의 뜻을 안다 |
| 4 | 트래픽 관리 CRD: Gateway, VirtualService, DestinationRule | 10분 | subset 카나리가 Envoy 설정으로 어떻게 바뀌는지 안다 |
| 5 | 보안: 워크로드 신원, PeerAuthentication, AuthorizationPolicy | 7분 | 게이트웨이 mTLS와 메시 mTLS를 구분한다 |
| 6 | Kubernetes Gateway API와 Envoy Gateway | 7분 | Istio 리소스를 Gateway API로 옮기는 표를 읽을 수 있다 |
| 7 | EnvoyFilter와 요청 제한 | 5분 | Pod별 100 TPS EnvoyFilter를 한 줄씩 읽는다 |
| 8 | ELB for Envoy는 어떤 가치가 있나 | 5분 | ELB for Envoy가 덜어 주는 운영 일과 메시가 따로 필요한 자리를 구분한다 |
마지막 자가 점검은 다 읽고 나서 3분 정도 훑어보시면 됩니다.
00
서비스가 여러 개로 나뉘면 서비스끼리 네트워크로 서로 부릅니다. 부를 때마다 챙길 일이 있는데요. 실패하면 다시 보내고(재시도), 오래 걸리면 끊고(타임아웃), 새 버전에는 일부만 보내고(카나리), 통신을 암호화하면서 상대가 누군지 확인하고(mTLS), 몇 번 불렀고 얼마나 걸렸는지 남깁니다(메트릭).
서비스 메시는 이 일을 앱 밖으로 빼낸 인프라 계층입니다. Istio 문서는 서비스 메시를 "애플리케이션에 zero-trust 보안, 관측성, 고급 트래픽 관리 같은 기능을 코드 변경 없이 주는 인프라 계층"이라고 정의합니다[18]. 메시가 없으면 이 기능을 서비스마다 코드나 언어별 라이브러리로 넣어야 하고, 메시를 쓰면 앱 옆의 프록시가 그 일을 맡습니다(추론).
그림 1. 서비스 메시는 재시도, TLS, 메트릭 같은 기능을 앱 코드에서 꺼내 앱 옆의 프록시로 옮긴다.
| Istio가 주는 것 | 예 |
|---|---|
| 트래픽 관리 | 카나리 배포, A/B 테스트, 로드밸런싱, 장애 복구 |
| 보안 | mTLS 암호화, 정책 관리, 워크로드 신원 기반 접근 제어 |
| 관측성 | 메시 안에서 텔레메트리를 만들고 Prometheus, Grafana 같은 도구와 연동 |
표의 항목은 Istio 소개 페이지에 나온 것입니다[18].
메시는 두 층으로 움직입니다. 각 앱 옆의 프록시(Istio는 Envoy를 씁니다)가 실제 트래픽을 처리하고, 중앙의 컨트롤 플레인이 그 프록시들에 설정을 내려줍니다. 프록시를 Pod 안에 사이드카로 넣는 방식과 ambient 방식이 있습니다[18]. 다음 섹션부터 이 두 층을 하나씩 보겠습니다.
메시 경계에는 밖에서 들어오는 트래픽을 받는 프록시도 있습니다. 이것이 인그레스 게이트웨이이고, Istio는 Gateway 리소스로 이 경계 프록시의 포트와 TLS를 설정합니다[2]. ELB for Envoy와 겹치는 자리가 바로 이 인그레스 게이트웨이인데요. 메시 안쪽 기능(서비스끼리의 mTLS, Pod별 정책)과 어떻게 갈리는지는 ELB for Envoy는 어떤 가치가 있나에서 정리했습니다.
01
Istio는 두 부분으로 나뉩니다. 실제 요청을 받아 넘기는 쪽이 데이터 플레인이고, Envoy 프록시들로 이루어집니다. 그 프록시들에게 "이렇게 라우팅하라"는 설정을 내려주는 쪽이 컨트롤 플레인이고, 이것이 istiod입니다[1].
그림 2. Istio 아키텍처: istiod가 컨트롤 플레인이고, 사이드카와 게이트웨이의 Envoy가 모든 요청이 지나는 데이터 플레인.
Istio의 데이터 플레인 프록시는 Envoy입니다. 정확히는 Istio가 확장한 Envoy이고, C++로 만든 고성능 프록시가 메시 안 모든 서비스의 들어오고 나가는 트래픽을 중간에서 처리합니다[1]. 이유는 세 가지로 보면 됩니다.
저는 세 번째가 가장 중요하다고 봤는데요. 데이터 플레인(Envoy)과 컨트롤 플레인(xDS를 내려주는 쪽)이 API 하나로 나뉘어 있기 때문에, Envoy는 AWS가 운영하고 xDS는 다른 곳에서 주는 ELB for Envoy 같은 조합이 가능해집니다(추론).
그림 3. Istio의 컨트롤 플레인(istiod)과 데이터 플레인(게이트웨이와 Pod마다 있는 istio-proxy 안의 Envoy), 그리고 설정이 흐르는 순서.
| 층 | 구성 요소 | 어디서 도나 | 하는 일 |
|---|---|---|---|
| 컨트롤 플레인 | istiod | 클러스터 안 Deployment, 바이너리 하나 | 서비스 디스커버리, 규칙을 Envoy 설정으로 변환해 xDS로 전달, CA로 인증서 발급, 사이드카 주입 webhook |
| 데이터 플레인 | 사이드카 Envoy | 각 Pod의 istio-proxy 컨테이너 | Pod로 들어오고 나가는 트래픽 처리 |
| 데이터 플레인 | Istio agent(pilot-agent) | 같은 istio-proxy 컨테이너 | Envoy를 띄우고(bootstrap), istiod와의 xDS 연결과 인증서(SDS)를 중계 |
| 데이터 플레인 | 인그레스·이그레스 게이트웨이 | 메시 경계의 독립 Envoy | 메시 밖 트래픽의 출입. Gateway 리소스가 여기에 적용됨 |
근거는 istiod의 역할[1], agent가 사이드카나 게이트웨이 컨테이너에서 Envoy를 bootstrap한다는 설명[20], 인증서는 agent가 SDS로 Envoy에 넘긴다는 설명[3], Gateway는 사이드카가 아니라 메시 경계에서 따로 도는 Envoy에 적용된다는 설명[2]입니다. ambient 모드에서는 사이드카 대신 노드별 ztunnel과 waypoint가 이 자리를 맡습니다(사이드카는 어떻게 붙고 트래픽은 어떻게 빨려 들어가나에서 다룹니다).
예전 자료에서 Pilot, Galley, Citadel 같은 이름이 나오면, Istio 1.5부터 사이드카 주입기와 함께 istiod 바이너리 하나로 합쳐진 기능이라고 보시면 됩니다[21].
istiod가 하는 일은 세 가지로 기억하면 됩니다[1].
| 하는 일 | 내용 |
|---|---|
| 서비스 디스커버리 | Kubernetes Service와 Pod 정보를 읽어 어떤 목적지에 어떤 엔드포인트가 있는지 파악 |
| 설정 변환·배포 | VirtualService 같은 상위 수준 규칙을 Envoy 설정으로 바꿔 런타임에 프록시에 내려줌 |
| 인증서 관리 | CA(Certificate Authority) 역할을 하며 데이터 플레인의 mTLS(mutual TLS)용 인증서를 발급 |
VirtualService 같은 리소스를 kubectl apply로 올리면 Kubernetes API에 저장됩니다.ELB for Envoy를 이해할 때도 이 구분이 출발점입니다. ELB for Envoy는 데이터 플레인인 Envoy를 AWS가 운영해 주는 서비스이고, 설정은 사용자가 가져오는 Envoy 설정이나 컨트롤 플레인에서 받습니다[15]. EKS에서는 Envoy Gateway가 그 컨트롤 플레인 역할을 합니다[16].
02
ELB for Envoy든 Istio든 Envoy 설정을 다루게 되니까, Envoy 쪽을 조금 더 보겠습니다. Envoy 설정은 요청이 흐르는 순서대로 네 덩어리로 보면 됩니다.
그림 4. Envoy 설정: listener, route, cluster, endpoint와 각각을 전달하는 xDS.
| 설정 덩어리 | 무엇을 정하나 | 이걸 내려주는 xDS |
|---|---|---|
| Listener | 어느 포트로 받을지, 어떤 필터 체인을 거칠지 | LDS(Listener Discovery Service) |
| Route | Host, 경로, 헤더를 보고 어느 cluster로 보낼지, 가중치 | RDS(Route Discovery Service) |
| Cluster | 업스트림 목적지 묶음, 로드밸런싱 방식, 연결 풀, TLS | CDS(Cluster Discovery Service) |
| Endpoint | cluster에 속한 실제 IP:포트 목록 | EDS(Endpoint Discovery Service) |
| Secret | 인증서, 개인키 | SDS(Secret Discovery Service) |
xDS는 이런 "* Discovery Service"들을 묶어 부르는 이름입니다. 모든 리소스를 gRPC 스트림 하나로 순서를 지켜 주고받는 방식이 ADS(Aggregated Discovery Service)이고, ADS는 gRPC로만 지원됩니다. Envoy 문서는 RDS로 바뀐 라우트가 진행 중인 요청에 영향 없이 교체되고, CDS로 cluster가 추가·변경·삭제된다고 설명합니다[10].
cluster가 엔드포인트를 찾는 방식은 여섯 가지가 있는데, 실제로 자주 마주치는 건 세 가지입니다[11].
| 방식 | 동작 | 언제 쓰나 |
|---|---|---|
STATIC | IP:포트를 설정에 직접 적음 | 대상이 거의 안 바뀔 때. Pod가 바뀌면 사람이 고쳐야 함 |
STRICT_DNS | DNS 이름을 계속 비동기로 다시 조회하고, 응답에 담긴 IP를 모두 개별 호스트로 취급. 재조회 주기 dns_refresh_rate 기본값은 5000ms | headless Service 이름을 넣으면 Ready Pod IP가 모두 호스트가 됨 |
EDS | xDS 서버가 엔드포인트 목록을 내려줌. 가중치 같은 속성도 함께 | Istio, Envoy Gateway가 쓰는 방식. Pod 교체를 바로 반영 |
그림 5. Envoy cluster가 엔드포인트를 찾는 방법: STATIC, STRICT_DNS, EDS.
headless Service(clusterIP: None)는 DNS 조회에 Service IP 대신 Ready Pod IP 목록을 돌려줍니다. 그래서 STRICT_DNS + headless Service + ROUND_ROBIN 조합이면 "Ready Pod 하나당 같은 몫"으로 트래픽이 나뉩니다. 그림 아래쪽 막대는 계산 예시입니다. 온프레미스에서 EKS로 옮기는 중이라 온프레미스 호스트 50개와 EKS Pod를 한 cluster에 같이 넣고 ROUND_ROBIN으로 돌린다고 해 보면, EKS 쪽 몫은 Pod 수 / (Pod 수 + 50)이 됩니다. Pod가 10/50/300개면 16.7%/50%/85.7%이니, Pod 수만 늘려도 트래픽이 EKS 쪽으로 옮겨 갑니다.
xDS 서버가 꼭 있어야 하는 것은 아닙니다. Envoy는 bootstrap의 dynamic_resources에서 LDS, CDS를 파일 경로로 지정해 읽을 수 있습니다. 이때 파일을 제자리에서 수정하면 반영되지 않고, 새 파일을 옮겨(move) 바꿔치기해야 반영됩니다[12]. 직접 해 보실 때 놓치기 쉬운 부분이라 꼭 확인해 보세요.
Listener 안에는 필터 체인이 있고, HTTP 처리는 envoy.filters.network.http_connection_manager(HCM) 안에 HTTP 필터를 순서대로 꽂아서 합니다. 마지막은 항상 업스트림으로 요청을 넘기는 envoy.filters.http.router입니다. 요청 제한 필터(local_ratelimit)를 router 앞에 끼워 넣는 예제는 EnvoyFilter와 요청 제한에서 봅니다.
03
그림 6. 사이드카 자동 주입과 iptables로 Pod 트래픽이 istio-proxy를 거치는 구조.
namespace에 istio-injection=enabled(또는 리비전 라벨 istio.io/rev=<rev>)를 붙이면, 그 뒤에 새로 만들어지는 Pod에 mutating admission webhook이 istio-proxy 컨테이너를 넣습니다. Deployment 자체는 바뀌지 않고 Pod 생성 시점에 주입되므로, 이미 떠 있는 Pod는 다시 만들어야 사이드카가 붙습니다. 주입된 Pod는 READY가 1/1에서 2/2로 바뀌고, istio-init 컨테이너가 트래픽 리다이렉트를 설정합니다[4].
istio-init이 iptables 규칙을 깔면 앱이 보내고 받는 트래픽이 사이드카 Envoy로 돌아갑니다. 알아 둘 포트는 이 정도입니다[5].
| 포트 | 용도 |
|---|---|
| 15001 | Envoy outbound (앱이 밖으로 보내는 트래픽) |
| 15006 | Envoy inbound (Pod로 들어오는 트래픽) |
| 15008 | HBONE(HTTP-Based Overlay Network Environment) mTLS 터널 (ambient) |
| 15021 | 헬스 체크 |
| 15090 | Envoy Prometheus 메트릭 |
| 15012 | istiod의 xDS·CA 서비스(TLS/mTLS) |
EnvoyFilter에서 자주 보는 SIDECAR_INBOUND는 15006 쪽, 즉 "Pod로 들어오는 요청을 사이드카가 받는 구간"을 가리킵니다. 게이트웨이가 Pod로 보낸 요청이 앱에 닿기 직전에 Pod 안의 사이드카가 한 번 더 처리할 수 있다는 뜻이고, Pod별 요청 제한 같은 기능이 사이드카에서만 가능한 이유가 여기 있습니다.
ambient 모드는 Pod 안에 사이드카를 넣지 않고, 노드마다 L4 프록시 ztunnel을 두고 L7이 필요하면 waypoint 프록시(Envoy)를 둡니다. ztunnel은 mTLS, L4 인가, 텔레메트리를 맡고 HTTP 헤더는 파싱하지 않습니다[6]. 이 글은 사이드카 모드 기준으로 설명하니, ambient는 여기까지만 알아 두셔도 됩니다.
04
Istio를 쓰면 가장 먼저 만나는 리소스들입니다. 각자 무엇을 맡는지부터 보겠습니다[2].
| 리소스 | 맡는 것 | Envoy로 치면 (추론) |
|---|---|---|
Gateway (networking.istio.io) | 메시 경계 프록시의 포트, 프로토콜, TLS, 받을 host. L4~L6 | Listener |
VirtualService | 경로·헤더 매칭, 어느 목적지로 몇 % 보낼지, 재시도·타임아웃 | Route |
DestinationRule | 라우팅이 끝난 뒤 목적지에 적용할 정책: subset 정의, 로드밸런싱, 연결 풀, 이상 감지(회로 차단), TLS | Cluster |
ServiceEntry | 메시 밖 목적지를 Istio 레지스트리에 등록 | Cluster + Endpoint |
Sidecar (리소스) | 사이드카가 받을 포트, 알아야 할 목적지 범위를 줄임 | 사이드카 설정 크기 |
"Envoy로 치면" 열은 이해를 돕기 위한 대응입니다. istiod가 정확히 1:1로 번역한다는 뜻은 아닙니다.
Istio의 Gateway는 포트와 TLS까지만 정하고, L7 라우팅은 VirtualService의 gateways 필드로 그 Gateway에 묶어야 동작합니다[2]. 또 Istio Gateway는 이미 배포돼 있는 게이트웨이 Deployment(예: istio-ingressgateway)를 selector로 골라 설정만 합니다[7]. 이 점이 뒤에 나올 Gateway API의 Gateway와 다릅니다.
주문 API를 예로 들어 Istio로 쓰면 대략 이런 모양입니다. stable/canary subset을 라벨로 나누고 95:5로 보냅니다.
apiVersion: networking.istio.io/v1
kind: Gateway
metadata: {name: public-gw, namespace: istio-ingress}
spec:
selector: {istio: ingressgateway} # 이미 떠 있는 게이트웨이 Pod를 고름
servers:
- port: {number: 443, name: https, protocol: HTTPS}
hosts: ["api.example.com"]
tls: {mode: SIMPLE, credentialName: api-cert} # TLS Secret 이름. Istio 예시는 게이트웨이가 도는 istio-system에 만듦
---
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata: {name: order-api, namespace: order}
spec:
hosts: ["api.example.com"]
gateways: ["istio-ingress/public-gw"] # 이 줄이 없으면 Gateway에 붙지 않음
http:
- match: [{uri: {prefix: /orders}}]
route:
- destination: {host: api.order.svc.cluster.local, subset: stable}
weight: 95
- destination: {host: api.order.svc.cluster.local, subset: canary}
weight: 5
---
apiVersion: networking.istio.io/v1
kind: DestinationRule
metadata: {name: order-api, namespace: order}
spec:
host: api.order.svc.cluster.local
trafficPolicy:
connectionPool: {http: {http1MaxPendingRequests: 100}}
outlierDetection: {consecutive5xxErrors: 5, interval: 10s, baseEjectionTime: 30s}
subsets:
- name: stable
labels: {version: stable}
- name: canary
labels: {version: canary}그림 7. istiod가 Gateway, VirtualService, DestinationRule을 Envoy listener, route, cluster로 바꾸는 방식.
subset은 "같은 Service 안에서 Pod 라벨로 다시 나눈 묶음"입니다. istiod는 subset마다 Envoy cluster를 따로 만들고 각 cluster의 엔드포인트를 라벨로 거릅니다(추론: istioctl proxy-config cluster 출력에서 subset별 cluster를 볼 수 있음). Kubernetes Service 하나만 보는 쪽에서는 이 구분이 보이지 않습니다. 그래서 Gateway API로 옮길 때는 subset을 "라벨이 다른 Service 두 개"로 나눠야 하는데, 이 내용은 Kubernetes Gateway API와 Envoy Gateway에서 다시 나옵니다.
05
그림 8. 사이드카가 SPIFFE 인증서를 받는 과정과 게이트웨이 mTLS, 메시 mTLS의 차이.
Istio에서 워크로드 신원은 SPIFFE(Secure Production Identity Framework For Everyone) 형식의 URI입니다: spiffe://<trust domain>/ns/<namespace>/sa/<service account>. 인증서는 이렇게 받습니다[3].
이 인증서는 istiod가 서비스 계정 기준으로 발급하는 것이라서, 메시 밖에 있는 프록시는 이 체계에 자동으로 들어오지 않습니다(추론). ELB for Envoy 같은 외부 게이트웨이를 붙일 때 이 점을 꼭 기억해 두세요.
| 모드 | 의미 |
|---|---|
PERMISSIVE | mTLS와 평문을 모두 받음 |
STRICT | mTLS만 받음 |
DISABLE | mTLS 끔 |
모드를 정하지 않으면 상위 범위를 물려받고, 메시 전체 정책에서 모드가 없으면 PERMISSIVE가 기본입니다[3].
이게 왜 중요하냐면, Pod가 STRICT면 메시 신원 인증서를 내밀지 못하는 클라이언트의 요청은 거부되기 때문입니다. 메시 밖 게이트웨이에서 STRICT Pod로 바로 보내려면 그 구간의 신원과 인증서를 따로 설계해야 합니다(추론).
AuthorizationPolicy는 selector로 대상 워크로드를 고르고, from.source.principals(호출자 SPIFFE 신원), 메서드·경로, when 조건으로 규칙을 씁니다. 동작은 CUSTOM, DENY, ALLOW 세 가지이고 이 순서로 평가합니다[3]. principal 기반 규칙은 mTLS로 확인한 신원이 있어야 의미가 있으므로, 메시 mTLS와 짝으로 봐야 합니다(추론).
mTLS라는 말이 두 군데에서 나와서 헷갈리기 쉬운데요, 이렇게 나눠 보면 됩니다.
| 구분 | 누가 인증서를 내나 | 누가 관리하나 |
|---|---|---|
| 게이트웨이 ↔ 백엔드 mTLS | 게이트웨이가 클라이언트 인증서를 내고, 백엔드 서버 인증서를 CA와 SAN(Subject Alternative Name)으로 검증 | 게이트웨이 설정 (Gateway API에서는 BackendTLSPolicy + Gateway의 클라이언트 인증서) |
| 메시 mTLS | 사이드카끼리 SPIFFE 인증서를 서로 냄 | istiod CA, PeerAuthentication |
게이트웨이 구간 설정은 Kubernetes Gateway API와 Envoy Gateway의 BackendTLSPolicy에서 다시 봅니다[13].
06
Istio는 Kubernetes Gateway API를 지원하고, 앞으로 트래픽 관리의 기본 API로 삼겠다고 밝히고 있습니다. Istio 문서가 짚는 차이는 세 가지입니다[7].
Gateway는 미리 배포된 게이트웨이를 설정만 하지만, Gateway API Gateway는 게이트웨이를 설정하고 배포까지 합니다. gatewayClassName: istio인 Gateway를 만들면 <Gateway 이름>-<GatewayClass 이름>으로 Deployment와 Service가 자동 생성됩니다.VirtualService 하나에 모든 프로토콜을 담던 것을 HTTPRoute, TCPRoute처럼 프로토콜별 리소스로 나눕니다.그림 9. Istio Gateway는 미리 설치된 게이트웨이를 설정만 하고, Gateway API Gateway는 배포까지 한다.
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata: {name: gateway, namespace: istio-ingress}
spec:
gatewayClassName: istio
listeners:
- name: default
hostname: "*.example.com"
port: 80
protocol: HTTP
allowedRoutes: {namespaces: {from: All}}
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata: {name: http, namespace: default}
spec:
parentRefs: [{name: gateway, namespace: istio-ingress}]
hostnames: ["httpbin.example.com"]
rules:
- matches: [{path: {type: PathPrefix, value: /get}}]
backendRefs: [{name: httpbin, port: 8000}]이 예시는 Istio 문서의 것입니다[7]. 가중치는 backendRefs마다 weight를 주는데, 대상이 Service라서 앞에서 본 subset 대신 Service를 둘로 나눕니다. Blue/Green을 100:0 → 95:5 → 50:50 → 0:100으로 옮기는 식의 전환도 이 방식으로 합니다.
BackendTLSPolicy는 Service에 붙여서, 게이트웨이가 백엔드에 붙을 때 쓸 SNI와 백엔드 인증서 검증 방법을 정합니다. hostname과 caCertificateRefs(또는 wellKnownCACertificates)가 필요하고, Standard Channel에는 v1.4.0부터 들어왔습니다. 게이트웨이가 백엔드에 내밀 클라이언트 인증서는 Gateway의 tls.backend.clientCertificateRef로 정하고, 이것은 그 Gateway가 맺는 모든 업스트림 연결에 적용됩니다. Standard Channel에는 v1.5.0부터 있습니다[13].
Envoy Gateway는 Gateway API 리소스를 읽어 Envoy xDS로 바꿔 주는 컨트롤 플레인입니다. Istio의 istiod와 같은 자리에 있다고 보면 됩니다(추론). Gateway API 표준에 없는 기능은 자체 정책 리소스로 채웁니다[14].
| Envoy Gateway 리소스 | 맡는 것 |
|---|---|
BackendTrafficPolicy | 게이트웨이 → 백엔드 구간: 회로 차단, 로컬·글로벌 요청 제한, 재시도, 로드밸런싱, 헬스 체크 |
ClientTrafficPolicy | 클라이언트 → 게이트웨이 구간: 연결 동작, 타임아웃, TLS |
SecurityPolicy | JWT, CORS, IP 필터 같은 인증·인가 |
EnvoyProxy | Envoy 배포 방식, 텔레메트리, 인프라 provider 설정 |
ELB for Envoy의 Kubernetes 통합은 이 구조 위에 있습니다. Envoy Gateway가 클러스터 안에서 xDS 컨트롤 플레인으로 돌고, remote infrastructure provider가 ELB for Envoy API를 불러 프록시를 만들며, 프록시 fleet은 AWS가 운영합니다. 이미 Envoy Gateway를 쓰고 있다면 Gateway API 리소스와 컨트롤 플레인은 그대로 두고 Envoy가 도는 위치만 바뀝니다[16]. Gateway를 ELB for Envoy에 올리려면 ELBProxyConfiguration 리소스를 붙이고, 여기에 프록시의 IAM 역할, 서브넷, 보안 그룹을 적습니다. AWS 문서는 이 통합을 초기 개발 단계(API 버전 v1alpha1)로 표시하고 있습니다[17]. ELB for Envoy는 2026-11-25에 GA됐고, 도쿄를 포함한 14개 리전에서 쓸 수 있습니다[15].
그림 10. EKS와 ELB for Envoy: Envoy Gateway는 클러스터 안 xDS 컨트롤 플레인으로 남고 Envoy fleet은 AWS가 운영.
메시를 쓰다가 게이트웨이를 Gateway API로 옮긴다면 이 표를 옆에 두고 보시면 됩니다[2][7][13][14].
| Istio | Gateway API / Envoy Gateway | 메모 |
|---|---|---|
Gateway (포트, host, TLS) | Gateway의 listeners | Gateway API 쪽은 배포까지 함 |
VirtualService (경로, 헤더, 가중치) | HTTPRoute | 가중치 대상이 subset이 아니라 Service |
DestinationRule subset | 라벨이 다른 Service로 분리 | Pod 라벨 카나리는 그대로 안 옮겨짐 |
DestinationRule 연결 풀, 이상 감지 | BackendTrafficPolicy | Envoy Gateway 확장 |
DestinationRule TLS 설정 | BackendTLSPolicy + Gateway 클라이언트 인증서 | |
EnvoyFilter | 일반적인 대응 없음 | Pod 안 사이드카에 거는 설정은 옮길 수 없음 |
PeerAuthentication, AuthorizationPolicy | 대응 없음 (메시 기능) | 메시를 계속 쓰면 Istio에 남음 |
07
EnvoyFilter는 istiod가 만든 Envoy 설정을 직접 패치하는 리소스입니다. Istio 문서는 이 API가 Istio 내부 구현과 Envoy xDS API에 깊이 묶여 있고, 프록시 버전을 올릴 때마다 폐기된 필드가 없는지 살펴야 하며, 여러 EnvoyFilter가 충돌하면 동작이 정의되지 않는다고 경고합니다. 패치 위치는 context(SIDECAR_INBOUND, SIDECAR_OUTBOUND, GATEWAY, ANY)와 applyTo(HTTP_FILTER, CLUSTER, HTTP_ROUTE 등)로 고르고, MERGE, INSERT_BEFORE, REPLACE 같은 동작으로 바꿉니다[8].
그림 11. 로컬 요청 제한은 프록시마다 버킷을 두고, 글로벌 요청 제한은 rate limit service의 카운터 하나를 나눠 쓴다.
| 종류 | 동작 | 어디서 쓰나 |
|---|---|---|
로컬 (local_ratelimit) | 프록시 인스턴스마다 토큰 버킷을 따로 가짐. 다른 서비스를 부르지 않음 | 사이드카에 걸면 Pod마다 독립 한도, 게이트웨이에 걸면 게이트웨이 단위 한도 |
| 글로벌 | 외부 rate limit 서비스에 gRPC로 쿼터를 물어봄. descriptor로 요청을 분류 | 여러 목적지가 한도 하나를 공유. ELB for Envoy의 EKS 통합에서는 지원 안 함 |
Istio 문서도 로컬 제한을 "다른 서비스를 부르지 않고 서비스 인스턴스별로" 거는 것으로, 글로벌 제한을 gRPC rate limit 서비스에서 쿼터를 받는 것으로 설명합니다[9]. ELB for Envoy의 Envoy Gateway 통합에서는 글로벌 요청 제한을 지원하지 않으니 로컬 요청 제한을 쓰라고 AWS 문서에 적혀 있습니다[17].
"order/api의 Pod마다 초당 100건까지만 받기"를 사이드카로 거는 예제입니다. 줄마다 주석을 달아 두었습니다.
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata: {name: api-inbound-100rps, namespace: order}
spec:
workloadSelector:
labels: {app: api} # order namespace의 app=api Pod 사이드카에만
configPatches:
- applyTo: HTTP_FILTER # HTTP 필터 목록을 건드림
match:
context: SIDECAR_INBOUND # Pod로 들어오는 쪽 (15006)
listener:
portNumber: 8080 # 앱 포트 8080으로 오는 요청
filterChain:
filter:
name: envoy.filters.network.http_connection_manager
subFilter: {name: envoy.filters.http.router}
patch:
operation: INSERT_BEFORE # router 바로 앞에 끼움
value:
name: envoy.filters.http.local_ratelimit
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit
stat_prefix: order_api_inbound
token_bucket: # 1초마다 100개 채움, 최대 100개
max_tokens: 100
tokens_per_fill: 100
fill_interval: 1s
filter_enabled: # 100% 요청에 대해 계산하고
default_value: {numerator: 100, denominator: HUNDRED}
filter_enforced: # 100% 실제로 거부(429)
default_value: {numerator: 100, denominator: HUNDRED}
response_headers_to_add:
- header: {key: x-order-pod-limit, value: "true"}
append_action: OVERWRITE_IF_EXISTS_OR_ADD토큰 버킷이 사이드카마다 따로 있으니 Pod가 늘면 서비스 전체 한도도 같이 늘어납니다. 그리고 이 설정은 Pod 안 사이드카에 붙는 것이라서, Pod 밖에 있는 게이트웨이(ELB for Envoy 포함)로는 옮길 수 없습니다.
08
앞에서 본 것처럼 Envoy는 할 줄 아는 게 많은 프록시지만, 직접 운영하려면 챙길 일도 그만큼 많습니다. ELB for Envoy는 이 운영을 AWS에 맡기는 서비스예요. 데이터 플레인과 컨트롤 플레인으로 나눠 보면, Envoy가 도는 곳만 AWS로 옮겨 가고 설정은 지금처럼 사용자가 내려줍니다[15].
AWS는 Envoy를 직접 운영하는 팀이 업그레이드, 보안 패치, 가용 영역(AZ)별 용량까지 떠안고 있다고 보고, ELB for Envoy가 이 일을 가져간다고 설명합니다[15]. EKS에서도 마찬가지예요. Envoy Gateway는 보통 Envoy를 클러스터 안 Pod로 띄우기 때문에 크기 산정, 확장, 업그레이드, CVE 패치를 모두 직접 해야 하거든요. ELB for Envoy를 붙이면 이 Envoy를 AWS가 대신 돌립니다[17].
| 일 | Envoy를 직접 운영하면 | ELB for Envoy를 쓰면 |
|---|---|---|
| 업그레이드, 보안 패치 | 직접 | AWS[15] |
| AZ별 용량, 확장 | 직접(replica, autoscaling 설정) | AWS. Kubernetes replica·autoscaling 설정은 쓰지 않음[15][17] |
| 격리 | 직접 설계 | 로드밸런서마다 전용 EC2 인스턴스, Nitro 하드웨어 격리[15] |
| 서브넷, 보안 그룹 | 직접 | EKS 통합 컨트롤러가 서브넷은 찾거나 지정한 것을 쓰고, 보안 그룹은 만들어 관리[17] |
| 라우팅·정책 | Gateway API + Envoy Gateway | 그대로 Gateway API + Envoy Gateway[17] |
격리는 AWS 발표에 따르면 Envoy에서 zero-day 취약점이 나와도 그 로드밸런서 안에서 끝나는 구조입니다[15].
관리형이라고 쓸 수 있는 기능이 줄지는 않습니다. 쓰던 Envoy 설정, 확장, 컨트롤 플레인을 그대로 가져올 수 있고, WebAssembly, Lua, external processing으로 직접 만든 로직도 넣을 수 있어요[15]. AWS가 꼽는 쓰임새는 세 가지입니다[15].
EKS에서는 Envoy Gateway가 클러스터 안에서 계속 xDS를 내려주고, 프록시만 ELB for Envoy 쪽에서 돕니다(ELB for Envoy는 이 구조의 어디에 들어가나). 프록시가 클러스터 밖에 있어서 아래 네 가지가 달라집니다[17].
v1alpha1)입니다.Istio 구조에 대 보면 ELB for Envoy의 자리는 메시 경계의 인그레스 게이트웨이입니다. Pod 옆의 사이드카나 노드의 ztunnel을 대신하지는 않아요(추론).
| 기능 | 게이트웨이(ELB for Envoy)에서 | 메시(사이드카·ztunnel)가 있어야 |
|---|---|---|
| 경로·헤더 라우팅, 가중치 분산 | 가능(Route 설정) | 서비스끼리 호출할 때도 같은 제어가 필요하면 |
| TLS, 게이트웨이 → 백엔드 mTLS | 가능(BackendTLSPolicy + Gateway 클라이언트 인증서)[13] | 서비스끼리 SPIFFE 신원으로 mTLS를 하려면[3] |
| 요청 제한 | 게이트웨이 단위 로컬 제한. 글로벌 제한은 지원 안 함[17] | Pod마다 따로 거는 한도(사이드카 SIDECAR_INBOUND)[8] |
워크로드 신원, AuthorizationPolicy | 해당 없음 | istiod CA와 사이드카가 있어야 함[3] |
Istio CRD(VirtualService, DestinationRule, EnvoyFilter) | Gateway API나 Envoy 설정으로 바꿔서 줘야 함 | Istio CRD를 Envoy 설정으로 바꾸는 건 istiod의 일[1] |
그림 12. ELB for Envoy가 맡는 자리와 메시가 있어야 하는 자리.
제 생각을 정리하면 이렇습니다(추론). 아직 메시가 없고, 당장 필요한 게 클러스터 입구의 L7 라우팅, 가중치 배포, 백엔드 mTLS, 게이트웨이 단위 요청 제한 정도라면 ELB for Envoy와 Envoy Gateway로 시작해 볼 만합니다. Envoy를 직접 운영하는 부담 없이요. 서비스끼리의 mTLS와 워크로드 신원, 서비스 간 인가, Pod 단위 정책이 필요해지면 그때가 메시를 진지하게 볼 시점이라고 생각합니다. Istio도 Gateway API를 지원하니, 그동안 익힌 Gateway API 라우팅은 메시를 도입한 뒤에도 그대로 쓸 수 있습니다.
ELB for Envoy로 Istio Ingress Gateway 기능을 하나씩 옮겨 보고 측정까지 한 글은 더 볼 만한 자료에 소개해 두었습니다. 실제 이전을 고민하신다면 이어서 읽어 보세요.
아래 질문에 답이 바로 나오면 이 글의 목표는 이룬 겁니다.
1. ELB for Envoy가 VirtualService를 그대로 읽지 못하는 이유는?
답: VirtualService를 Envoy 설정으로 바꾸는 것은 istiod(컨트롤 플레인)의 일이고, ELB for Envoy는 Envoy(데이터 플레인)를 운영해 주는 서비스이기 때문입니다. 설정은 xDS(자체 컨트롤 플레인이나 Envoy Gateway)로 따로 줘야 합니다.
2. headless Service + STRICT_DNS로 왜 Pod 수에 비례해 나뉘나?
답: headless Service의 DNS 응답은 Ready Pod IP 목록이고, STRICT_DNS는 응답의 IP를 모두 개별 호스트로 넣습니다. 그 위에서 ROUND_ROBIN을 돌리면 호스트(=Pod)마다 같은 몫을 받습니다.
3. DestinationRule subset 카나리를 Gateway API로 옮길 때 무엇을 바꿔야 하나?
답: HTTPRoute의 가중치 대상은 Service이므로, stable/canary를 라벨이 다른 Service 두 개로 나누고 backendRefs에 weight를 줍니다.
4. Pod가 PeerAuthentication STRICT일 때 메시 밖 게이트웨이가 평문으로 보내면?
답: STRICT는 mTLS만 받으므로 거부됩니다. 게이트웨이 구간 mTLS(BackendTLSPolicy 등)는 메시 SPIFFE 신원과 다른 체계라서 따로 맞춰야 합니다.
5. 사이드카 local_ratelimit 100/초를 Pod 3개에 걸면 서비스 전체 한도는?
답: 토큰 버킷이 Pod마다 따로 있으니 대략 300/초입니다. 서비스 전체를 하나의 한도로 묶으려면 글로벌 제한(외부 rate limit 서비스)이 필요합니다.
6. ELB for Envoy를 쓰면 Envoy 운영에서 무엇이 사용자 손을 떠나나?
답: 업그레이드와 보안 패치, AZ별 용량과 확장을 AWS가 맡습니다. 라우팅과 정책은 여전히 Gateway API와 Envoy Gateway로 사용자가 정합니다.
1시간 분량에 맞추느라 아래 내용은 뺐습니다. 메시 도입을 실제로 검토하신다면 다음으로 보시면 좋을 주제들입니다.
| 주제 | 한 줄 설명 |
|---|---|
| ambient 모드 자세히 | 노드별 ztunnel, waypoint, HBONE 터널이 사이드카를 어떻게 대신하는지 |
| 멀티 클러스터 | 여러 클러스터를 메시 하나로 묶는 구성 |
| egress gateway 상세 | 메시 밖으로 나가는 트래픽을 한곳으로 모으는 설정 |
| 업그레이드 | istiod 리비전을 나란히 띄워 옮기는 방식 |
| 관측 도구 | Prometheus, Grafana 같은 도구와 연결하는 방법 |