Hybrid Nodes Gateway Deployment and Operations
Overview
The Hybrid Nodes Gateway is AWS-provided, open-source gateway software that removes the requirement to make the Pod CIDR routable from the on-premises network (GA on April 21, 2026). AWS supplies the logic that automatically maintains and updates VPC route tables, but you deploy the gateway itself to your own EC2 nodes with Helm and own its configuration, updates, and capacity. The EKS control plane is AWS-managed, and with Auto Mode EKS also manages provisioning of the gateway nodes. This document covers the Gateway's operating mechanism, a pre-adoption checklist, a five-step deployment procedure, and the operational posture (sizing, HA, monitoring, removal). For criteria on whether to adopt the Gateway, refer to the Architecture Decision Guide.
Operating Mechanism
The Gateway leverages the VTEP (VXLAN Tunnel Endpoint) feature of the Cilium CNI. It establishes a VXLAN tunnel (hybrid_vxlan0 interface, VNI 2, UDP 8472) between EC2 gateway nodes in the VPC and Cilium nodes on-premises, encapsulating and forwarding Pod traffic. Only UDP traffic between node IPs flows over the physical network, so the underlay (on-premises routers and VPC route tables) does not need routes for the Pod CIDR. This removes the routing exposure, but it does not provide traffic confidentiality: VXLAN only encapsulates the inner IP header and payload — it does not encrypt them. If you need confidentiality in transit, secure an encrypted transport layer such as DX MACsec or a VPN separately.
Figure 1. Gateway's VXLAN tunnel and automatic VPC route management structure
The Gateway operates through four mechanisms.
- VXLAN tunneling: The gateway creates the
hybrid_vxlan0interface, and a node controller watchingCiliumNodeobjects automatically adds and removes FDB/ARP entries and routes as hybrid nodes join or leave. - VPC route table management: The leader creates and replaces "Pod CIDR → leader's primary ENI" routes in the designated VPC route tables.
- Cilium VTEP integration: The leader creates the
CiliumVTEPConfigCRD to inform the Cilium agents on hybrid nodes of the tunnel endpoint (the leader node IP) for VPC-bound traffic. - Leader election: An active-standby model based on Kubernetes Lease. Two gateway Pods run on different nodes via pod anti-affinity, and both Pods pre-provision the VXLAN interface and the full set of VTEP entries at startup. On leader failure, the standby only needs to update the route tables and the
CiliumVTEPConfig. The expected failover time differs between sources: the AWS User Guide (hybrid-nodes-gateway-operations.html) states approximately 3–5 seconds, while the GitHubaws/eks-hybrid-nodes-gatewayREADME (mainbranch, accessed 2026-10-13) states approximately 15–30 seconds. Both describe it as an estimate that depends on the leader-election parameters (lease duration and renew deadline). Because it is not a guaranteed value, measure it in your own environment (see High Availability and Failover below).
What the Gateway does not do is equally clear. The Gateway is not a NAT, so it cannot resolve CIDR overlaps, and the requirements for node CIDR routing and private connectivity between the VPC and on-premises remain unchanged.
Pre-Adoption Checklist
Table 1. Pre-adoption checklist items for the Gateway
| # | Item | Details |
|---|---|---|
| 1 | Cilium version | EKS distribution Cilium 1.17.13-1 / 1.18.8-1 / 1.19.2-1 or later (minimum versions with VTEP support) |
| 2 | Cilium configuration | vtep.enabled=true + l7Proxy=false required. If the L7 proxy is enabled, VTEP traffic may be intercepted and dropped |
| 3 | Cloud node CNI | Cloud nodes, including gateway nodes, must use the AWS VPC CNI (depends on VPC-native routing) |
| 4 | Gateway EC2 | Minimum 2 instances, different AZs recommended, source/destination check disabled |
| 5 | IAM permissions | ec2:DescribeRouteTables, ec2:CreateRoute, ec2:ReplaceRoute, ec2:DescribeInstances — granting only to the gateway service account via EKS Pod Identity is recommended |
| 6 | Firewall | Allow UDP 8472 inbound/outbound on both the gateway SG and the on-premises firewall |
| 7 | VPC CNI SNAT exception | Register the hybrid Pod CIDR in AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRS |
| 8 | Transport encryption | VXLAN is unencrypted — secure DX MACsec or a VPN as the transport layer |
Step 1: Reconfigure Cilium
Enable VTEP and disable the L7 proxy on the existing Cilium installation.
helm upgrade cilium oci://public.ecr.aws/eks/cilium/cilium \
--version CILIUM_VERSION \
--namespace kube-system \
--reuse-values \
--set vtep.enabled=true \
--set l7Proxy=false
kubectl rollout restart daemonset/cilium -n kube-system
kubectl rollout status daemonset/cilium -n kube-system
# Verify the settings were applied
kubectl get configmap cilium-config -n kube-system -o yaml | grep -E "enable-vtep|enable-l7-proxy"
# Correct if enable-l7-proxy: "false" / enable-vtep: "true"
l7Proxy=false disables Cilium's L7 network policies (HTTP-aware policies) and Envoy-based features. Clusters that use these features must evaluate alternatives (L7 control at the gateway or service mesh level) before adopting the Gateway.
Step 2: VPC CNI SNAT Exception
Configure a SNAT exception so that traffic from cloud Pods destined for ClusterIP Services backed by hybrid Pod endpoints follows VPC routing.
kubectl set env daemonset aws-node -n kube-system \
AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRS=POD_CIDRS # multiple values can be specified, comma-separated
Direct Pod-to-Pod communication by IP works without this setting, but it is required for traffic that traverses a ClusterIP Service.
Step 3: Prepare Gateway Nodes
EKS Auto Mode (recommended) — Configure labels, taints, and the source/dest check declaratively with a NodeClass/NodePool.
apiVersion: eks.amazonaws.com/v1
kind: NodeClass
metadata:
name: hybrid-gateway
spec:
advancedNetworking:
sourceDestCheck: DisabledPrimaryENI # allow forwarding of traffic not addressed to this node
role: YOUR_NODE_ROLE
securityGroupSelectorTerms:
- tags:
aws:eks:cluster-name: YOUR_CLUSTER_NAME
subnetSelectorTerms: # two subnets in different AZs
- id: SUBNET_ID_1
- id: SUBNET_ID_2
---
apiVersion: karpenter.sh/v1
kind: NodePool
metadata:
name: hybrid-gateway
spec:
template:
metadata:
labels:
hybrid-gateway-node: "true" # target of the Helm chart's node selector
spec:
nodeClassRef:
group: eks.amazonaws.com
kind: NodeClass
name: hybrid-gateway
requirements:
- key: karpenter.sh/capacity-type
operator: In
values: ["on-demand"]
- key: eks.amazonaws.com/instance-category
operator: In
values: ["c", "m", "r"]
- key: eks.amazonaws.com/instance-generation
operator: Gt
values: ["4"]
taints:
- key: hybrid-gateway-node
effect: NoSchedule # isolate as dedicated nodes for gateway Pods
Managed node group (alternative) — Apply the hybrid-gateway-node=true label and a NoSchedule taint to a dedicated node group, and attach a launch template with user-data that disables the source/dest check at boot (the node IAM role requires the ec2:ModifyNetworkInterfaceAttribute permission). Add --set autoMode.enabled=false when installing the Helm chart. For detailed steps, refer to the official getting-started documentation.
Step 4: IAM Permissions (Pod Identity Recommended)
# Install the Pod Identity Agent add-on (if not already installed)
aws eks create-addon --cluster-name CLUSTER_NAME --addon-name eks-pod-identity-agent
# Create a role with route table management permissions, then associate it with the gateway service account
aws eks create-pod-identity-association \
--cluster-name CLUSTER_NAME \
--namespace eks-hybrid-nodes-gateway \
--service-account eks-hybrid-nodes-gateway \
--role-arn arn:aws:iam::ACCOUNT_ID:role/EKSHybridNodesGatewayRole
Attaching the policy to the node IAM role is also supported, but that grants route-modification permissions to every Pod on the gateway node. Granting the permissions only to the service account via Pod Identity is recommended.
Step 5: Helm Installation
helm install eks-hybrid-nodes-gateway \
oci://public.ecr.aws/eks/eks-hybrid-nodes-gateway \
--version 1.0.0 \
--namespace eks-hybrid-nodes-gateway \
--create-namespace \
--set vpcCIDR=VPC_CIDR \
--set podCIDRs=POD_CIDRS \
--set routeTableIDs=ROUTE_TABLE_IDS
Both podCIDRs and routeTableIDs are single comma-separated string values (the chart types them as string, for example podCIDRs=10.85.0.0/16,10.86.0.0/16). However, helm --set interprets a comma as the separator between successive key=value assignments, so substituting multiple values directly into the placeholders above (--set podCIDRs=10.85.0.0/16,10.86.0.0/16) makes Helm treat 10.86.0.0/16 as a separate assignment and fail to parse. To pass multiple values, use one of the following:
- Escape each comma with a backslash:
--set 'podCIDRs=10.85.0.0/16\,10.86.0.0/16'(wrap in single quotes so the shell does not consume the backslash). - Put the values as strings in a values file (
values.yaml) and pass it with-f:
# values.yaml
vpcCIDR: "10.0.0.0/16"
podCIDRs: "10.85.0.0/16,10.86.0.0/16"
routeTableIDs: "rtb-0123456789abcdef0,rtb-0123456789abcdef1"
helm install eks-hybrid-nodes-gateway \
oci://public.ecr.aws/eks/eks-hybrid-nodes-gateway \
--version 1.0.0 \
--namespace eks-hybrid-nodes-gateway \
--create-namespace \
-f values.yaml
For a single value, substituting the --set placeholder directly, as in the official AWS example, works fine.
Table 2. Required Helm installation values and caveats
| Required value | Meaning | Caveats |
|---|---|---|
vpcCIDR | CIDR of the EKS cluster VPC | Must be updated if a secondary CIDR is added to the VPC |
podCIDRs | Pod CIDRs of the hybrid nodes' Cilium (comma-separated single string) | Must match Cilium's clusterPoolIPv4PodCIDRList and the RemotePodNetwork. For multiple values, escape the commas in --set or use a values file |
routeTableIDs | IDs of the VPC route tables the Gateway programs routes into (comma-separated single string) | Enumerate every route table of every subnet that communicates with hybrid Pods — subnets attached to an omitted table cannot reach hybrid Pods. For multiple values, apply the same escaping/values-file rule as podCIDRs |
Installation Verification
# Verify both gateway Pods are Running
kubectl get pods -n eks-hybrid-nodes-gateway
# Check the leader lease (the leader Pod appears in the HOLDER column)
kubectl get lease -n eks-hybrid-nodes-gateway
# Verify the Pod CIDR → leader ENI route was created in the VPC route table
aws ec2 describe-route-tables --route-table-ids ROUTE_TABLE_ID \
--query "RouteTables[].Routes[?DestinationCidrBlock=='POD_CIDR']"
# Check the VTEP configuration on the hybrid node side
kubectl get ciliumvtepconfig hybrid-gateway -o yaml
Operational Posture: Helm-Managed vs Manual EC2
A common question is: "If Kubernetes fails, doesn't the gateway die with it — wouldn't a manually built iptables gateway on EC2 be safer?" The short answer is that the Helm-managed deployment is the only officially supported form, and a manual EC2 setup is not recommended for the following reasons.
- Automation cannot be replicated: The Gateway automatically manages VTEP entries by watching
CiliumNodeobjects and automatically updates the VPC routes andCiliumVTEPConfigon leader failure. A manual setup requires a human to update FDB/ARP entries and routes every time nodes are added, removed, or fail. - Failure domain analysis: Gateway Pods run on gateway EC2 nodes, and their dependencies are the EKS control plane (AWS-managed, backed by an SLA) and the gateway EC2 instances themselves. If a "Kubernetes failure" actually means a control plane failure, that is in AWS's management domain; if it means a worker node failure, the standby in another AZ takes over. The failover duration differs between sources: the AWS User Guide (
hybrid-nodes-gateway-operations.html, as of the 2026-04 GA) states approximately 3–5 seconds, while the GitHubaws/eks-hybrid-nodes-gatewayREADME (mainbranch, accessed 2026-10-13) states approximately 15–30 seconds; both present it as an estimate that depends on the leader-election parameters (lease duration and renew deadline). Treat it as a value to measure with fault injection in your own environment, not a guarantee. A manual EC2 setup is equally exposed to EC2 failures, and it lacks automatic failover. - Data plane independence: VXLAN forwarding operates at the kernel level, so traffic forwarding through already-programmed tunnels continues even if the control plane becomes temporarily unstable. The control plane dependency, however, does not exist only at configuration-change moments. Leader election must continuously renew the Lease against the Kubernetes API server (default renew deadline 2 seconds) to stay in effect, and failover recovery completes only after the standby calls the EC2 route APIs (
ec2:CreateRoute/ReplaceRoute) and the Kubernetes API to finish the leader setup. So the data plane is independent only for routes that are already programmed; a loss of API server access, an IAM permission problem, or a route-update failure can delay or block the standby takeover itself.
Instance Sizing: Vertical Scaling Principle
Because the Gateway uses an active-standby model, traffic is always handled by a single leader instance. Increasing replicas (horizontal scaling) only improves availability and does not increase throughput; performance scales only with the instance type's network bandwidth (vertical scaling). This is the explicit guidance in the official documentation.
Low-spec t-family instances (such as t2.small) are unsuitable as gateway nodes. The gateway is the bottleneck that forwards all traffic between the VPC and hybrid Pods, and VXLAN encapsulation adds per-packet overhead, so an instance with low network performance (bandwidth, PPS) becomes the ceiling for all cross-network communication. The officially recommended instances are as follows.
Table 3. Officially recommended gateway instances and network performance by scale
| Scale | Instance | Network | Notes |
|---|---|---|---|
| Production (10–100 hybrid nodes, moderate traffic) | c6in.xlarge | Up to 30 Gbps | Network-optimized, official recommendation |
| 〃 | c6i.xlarge / c7i.xlarge | Up to 12.5 Gbps | Cost/performance balance |
| High throughput (100+ nodes, heavy traffic) | c6in.2xlarge | Up to 40 Gbps | Official recommendation |
| 〃 maximum configuration | c6in.4xlarge | Up to 50 Gbps | Data-intensive workloads |
Observe actual usage with metrics (hybrid_gateway_primary_nic_*, hybrid_gateway_vxlan_*) and adjust the instance type accordingly.
High Availability and Failover
- The two gateway Pods run on different nodes via pod anti-affinity, and placement in different AZs is recommended (so an AZ failure does not take out the leader and the standby simultaneously).
- Both Pods maintain the VXLAN interface and VTEP entries at all times, so failover only involves updating the route tables and the
CiliumVTEPConfig. The expected failover time differs between sources: the AWS User Guide gives approximately 3–5 seconds, while the GitHub README (main, accessed 2026-10-13) gives approximately 15–30 seconds; both are estimates that vary with the leader-election parameters. VPC-to-hybrid-Pod traffic is interrupted during this window, so confirm the actual interruption time with fault injection on a representative instance. - The default leader election parameters (lease 3s / renew 2s / retry 1s) are tuned for fast failover. Reducing them further increases the risk of false-positive failovers during transient network blips, so the defaults are appropriate for most environments.
- Standard cross-AZ data transfer charges apply to cross-AZ traffic between the gateway and VPC resources.
Failure Impact Scope
A gateway instance failure does not mean the entire hybrid network goes down. Only cross-network Pod traffic encapsulated in VXLAN traverses the Gateway; node-level communication and on-premises internal traffic flow over paths independent of the Gateway.
Figure 2. Paths affected and unaffected by a gateway failure
Table 4. Whether each traffic path traverses the Gateway and the impact on leader failure
| Traffic path | Traverses the Gateway | Impact on leader failure |
|---|---|---|
| ① VPC ↔ hybrid Pods (webhook calls, east-west, NLB/ALB IP targets) | Yes — VXLAN encapsulation | Interrupted until the standby takes over (reported as 3–5s / 15–30s depending on the source; measure it) |
| ② kubelet ↔ control plane (TCP 10250, API server) | No — the node CIDR is routed directly over DX/VPN | None — nodes remain Ready |
| ③ On-premises Pod ↔ Pod | No — handled locally by on-prem Cilium | None |
| Hybrid Pod execution itself | No | None — workloads keep running |
The table above assumes an isolated failure of a single gateway instance while the shared dependencies (the EKS control plane, the Kubernetes API, IAM, the route tables, and the Cilium configuration) are healthy. Under that assumption the standby takes over, only path ① is briefly interrupted, and ② and ③ remain intact. However, the following shared-dependency failure modes can interrupt VPC-to-hybrid-Pod communication or delay recovery even while both instances are alive:
- Both gateway instances fail simultaneously (for example, an AZ failure with single-AZ placement). Path ① is interrupted until node replacement and Pod rescheduling (② and ③ remain intact). This is why placement in different AZs is recommended.
- Loss of Kubernetes API server access: if the leader cannot renew its lease, leadership becomes unstable, and the standby may be unable to acquire the lease, so failover is delayed or fails.
- Revoked or erroring IAM permissions: if
ec2:CreateRoute/ReplaceRouteis missing or denied, the route re-pointing on failover fails and path ① does not recover (detect early viahybrid_gateway_aws_route_table_update_errors_total). - Incorrect route table / Pod CIDR configuration: if
routeTableIDsomits a subnet orpodCIDRsdoes not match the actual ranges, communication for the affected range does not work even with both instances healthy. - Cilium VTEP /
l7Proxymisconfiguration or a broken tunnel path: if the hybrid-node VTEP settings or the UDP 8472 path break, encapsulated traffic is dropped.
If even a few seconds of interruption is unacceptable, or you cannot accept these shared dependencies behind a single chokepoint, evaluate option A (full BGP routing), which has no single gateway chokepoint, in the Architecture Decision Guide.
Monitoring
The gateway exposes health (/healthz) and readiness (/readyz) endpoints on port 8088, and Prometheus metrics (/metrics) on port 10080. The key observability metrics are as follows.
Table 5. Key Gateway observability metrics and their purpose
| Metric | Purpose |
|---|---|
hybrid_gateway_leader_is_active | Leader/standby status (1 = leader) |
hybrid_gateway_hybrid_nodes_configured | Number of hybrid nodes with VTEP configured |
hybrid_gateway_aws_route_table_update_errors_total | Route update failures (early detection of IAM or route table issues) |
hybrid_gateway_vxlan_rx/tx_bytes_total | VXLAN tunnel traffic volume (basis for sizing decisions) |
hybrid_gateway_primary_nic_rx/tx_bytes_total | Instance network usage (utilization against the bandwidth ceiling) |
The CloudWatch Observability add-on can be configured to scrape port 10080 in the eks-hybrid-nodes-gateway namespace.
Removal Caveat: Manual Route Cleanup
Removing the gateway is a destructive operation that severs the only documented path between the VPC and hybrid Pods. helm uninstall does not automatically delete the VPC route entries the Gateway created, so if routes remain after removal, traffic is directed to an instance that is no longer a gateway. Always proceed in the following order.
- Secure a cutover/maintenance window or switch to an alternative path first: the VXLAN-encapsulated path (path ① in the table above) is severed the moment you remove the gateway. Either migrate to another path first (for example, option A full BGP routing), or proceed only after securing an acceptable outage window.
- Capture a route inventory before deleting: confirm that the routes you will delete are gateway-owned (Pod CIDR routes whose target is the gateway leader's ENI), and enumerate and save every combination of
routeTableIDsandpodCIDRsyou specified at install time. If you configured multiple route tables and multiple CIDRs, each combination needs its own deletion.
# (1) Back up the current values and gateway-owned routes for reinstall/rollback
helm get values eks-hybrid-nodes-gateway -n eks-hybrid-nodes-gateway -o yaml > gateway-values.backup.yaml
for RTB in ROUTE_TABLE_ID_1 ROUTE_TABLE_ID_2; do
aws ec2 describe-route-tables --route-table-ids "$RTB" \
--query "RouteTables[].Routes[?DestinationCidrBlock=='POD_CIDR']" --output json
done
# (2) Uninstall the chart
helm uninstall eks-hybrid-nodes-gateway --namespace eks-hybrid-nodes-gateway
# (3) Manually delete each (route table x Pod CIDR) route the gateway created
# — delete only routes whose target is the gateway ENI
aws ec2 delete-route \
--route-table-id ROUTE_TABLE_ID \
--destination-cidr-block POD_CIDR
- Prepare for rollback: keeping
gateway-values.backup.yamland the route inventory lets you reinstall with the same values to roll back if something goes wrong. Record the deleted Pod CIDR routes and route table IDs so you can verify that routes are correctly restored after reinstallation.
Other Constraints
- One set per cluster: One gateway deployment serves a single EKS cluster. In multi-cluster environments, deploy per cluster.
- Regions and cost: Available in all Hybrid Nodes supported regions except the China regions. There is no separate charge for the Gateway software itself; what you pay for is the underlying infrastructure that runs the gateway — the gateway EC2 instances, EKS Auto Mode management fees (if you use Auto Mode), and any associated data transfer fees (including cross-AZ transfer and the cost of the transport path such as DX/VPN, as stated in the GA announcement). If you collect metrics and logs with CloudWatch Observability, that incurs its own observability costs. The code is published as open source.
Recommendations Summary
- Confirm the Cilium minimum versions (1.17.13-1 / 1.18.8-1 / 1.19.2-1) and
vtep.enabled=true+l7Proxy=falsebefore adoption, and review L7 policy usage first. - Provision gateway nodes on network-optimized instances (
c6in.xlargeor larger) in different AZs, and do not use t-family instances. - Grant IAM permissions only to the gateway service account via Pod Identity.
- Enumerate every route table of every subnet that communicates with hybrid Pods in
routeTableIDswithout omission. - VXLAN is unencrypted, so secure DX MACsec or a VPN as transport-layer encryption.
- Continuously observe bandwidth utilization and route update errors with the
hybrid_gateway_*metrics.
References
Official Documentation
- Amazon EKS Hybrid Nodes gateway — Gateway architecture, failover estimate (3–5 seconds per the User Guide), constraints
- Get started with EKS Hybrid Nodes gateway — Prerequisites, IAM, NodeClass/NodePool, Helm installation
- Configure CNI for the Hybrid Nodes gateway — Cilium minimum versions, vtep/l7Proxy settings, VPC CNI SNAT exception
- Amazon EKS Hybrid Nodes gateway operations — Failover sequence, instance sizing, metrics
Technical Blogs
- Introducing the Amazon EKS Hybrid Nodes gateway — AWS What's New — GA announcement (2026-04-21)
- Simplify hybrid Kubernetes networking with Amazon EKS Hybrid Nodes gateway — AWS Containers Blog — Gateway deep dive, Cilium values example
- aws/eks-hybrid-nodes-gateway — GitHub — Gateway open-source repository
Related Documents (Internal)
- Architecture Decision Guide — Criteria for deciding whether to adopt the Gateway
- CIDR Design and Address Range Minimization — Registration scope reduced by adopting the Gateway
- Firewall and DNS Pre-Registration Guide — UDP 8472 rules and SG configuration