Creating GatewayAPI Gateway

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 the Alauda Container Platform Kubernetes cluster.

Requirements

TOC

Deploy MetalLB

The GatewayAPI gateway requires MetalLB to allocate an IP address. Please refer to Create MetalLB for instructions on how to deploy MetalLB.

Set Pod Security Policies to Privileged Mode

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.
Update PSP

Procedure

  1. Navigate to Platform Management.

  2. In the left sidebar, click on Network Management > Inbound Gateways.

  3. Click on Create Inbound Gateways.

  4. Follow the instructions below to complete the network configuration:

    ParameterDescription
    NameThe name of the gateway.
    GatewayClassThe embedded exclusive-gateway is provided by Alauda Container Platform and backed by ALB. It will create a container-network-mode ALB to implement the GatewayAPI gateway specification.
    SpecificationSet the specifications appropriately based on your business needs. You can also refer to How to properly allocate CPU and memory resources for guidance.
  5. Click Create. The creation process may take some time; please be patient.

Create Gateway