GatewayAPI is a new API for Kubernetes that provides a more flexible and extensible way to manage ingress traffic. It allows you to define routing rules, traffic policies, and other configurations in a more declarative manner.
This document provides a step-by-step guide on how to create a GatewayAPI gateway in an ACP Kubernetes cluster.
The GatewayAPI gateway requires MetalLB to allocate an IP address. Please refer to Create MetalLB for instructions on how to deploy MetalLB.
If the namespace where you want to deploy the gateway is created via the UI, you need to update its Pod Security Policy (PSP) to privileged mode.
Navigate to Platform Management.
In the left sidebar, click on Network Management > Inbound Gateways.
Click on Create Inbound Gateways.
Follow the instructions below to complete the network configuration:
Parameter | Description |
---|---|
Name | The name of the gateway. |
GatewayClass | The embedded exclusive-gateway is provided by ACP and backed by ALB. It will create a container-network-mode ALB to implement the GatewayAPI gateway specification. |
Specification | Set the specifications appropriately based on your business needs. You can also refer to Load Balancer Selection and Planning for guidance. |
Click Create. The creation process may take some time; please be patient.