The Gateway API is the official traffic management standard from the Kubernetes community. It supports both Ingress-based north-south traffic management and Service Mesh-based east-west traffic management. This topic describes the core concepts of the Gateway API and its solutions for managing north-south traffic.
Core concepts
The Gateway API uses a role-oriented, layered design. This design decouples infrastructure provisioning, cluster O&M, and application routing. The Gateway API includes the following core resources:
-
GatewayClass (Infrastructure layer): Similar to
IngressClass, this resource defines the gateway controller type, such as ALB or Envoy Gateway, and its general configurations. -
Gateway (O&M layer): Defines a specific gateway instance and describes its network listener rules, such as ports, protocols, and TLS configurations.
-
HTTPRoute, GRPCRoute, and other route types (Application layer): These resources define specific traffic routing rules, such as path matching, header modification, and traffic weighting. These rules are attached to a backend service.
-
Policy (Policy layer): This resource defines a set of specific configurations or behaviors, such as circuit breaking, rate limiting, and JWT authentication. It can be attached to a specific gateway, route, or backend service.
Gateway API solutions in ACK
In an ACK cluster, you can choose a Gateway API solution based on your business needs:
|
Solution |
Gateway with Inference Extension |
ALB (Application Load Balancer) |
|
Overview |
Gateway with Inference Extension is a component built on the open source Envoy Gateway project. It is optimized for cloud-native and AI inference scenarios. It listens for Gateway API resources to dynamically create and delete gateways and manage north-south traffic for the cluster. This component is not fully managed. It is deployed on the nodes of your cluster and requires you to perform O&M. It does not come with a cloud product Service-Level Agreement (SLA). |
ALB Ingress Controller supports the Gateway API in versions v2.17.0 and later. Configure resources such as Gateway and HTTPRoute to route external application layer traffic to workloads (pods) that are managed by services inside the cluster. This setup manages the cluster's north-south traffic. The ALB Ingress Controller listens for changes to Gateway API resources. It then converts these changes into listener rules, routing rules, and server group configurations for the underlying ALB instance in real time. |
|
Scenarios |
General traffic and AI inference scenarios |
General traffic scenarios |
|
Core advantages |
|
|
|
References |