API Gateway

3 min read

API Gateway #

Overview

BuildPiper provides a dedicated UI for managing API Gateway configurations. During setup, you can define the Access Level to control whether your application is accessible publicly over the internet or restricted to private access, such as through a VPN.

1. Navigation #

Figure 1: Navigation to Add API Gateway

Figure 1: Navigation to Add API Gateway

  1. 1

    Login to BuildPiper and click Infra Inventory.

  2. 2

    Select the Kubernetes cluster.

  3. 3

    Click Manage API gateway. The API gateway List page opens.

  4. 4

    Click + ADD API GATEWAY.

2. API Gateway List #

The list can be filtered and shows the following columns.

Swipe horizontally to view all columns →
Filter Description
Name Filter by gateway name.
Namespace Filter by namespace.
Status Filter by status.
Type Filter by gateway type.
Swipe horizontally to view all columns →
Column Description
Name Name of the API gateway.
Namespace Namespace where the gateway is created.
Status Status of the gateway
Type Type of the gateway (for example, nginx).

3. API Gateway Configuration #

After you click + ADD API GATEWAY, the Add API Gateway form opens. An API gateway allows access to your Kubernetes services from outside the Kubernetes cluster.

Figure 2: Add API Gateway

Figure 2: Add API Gateway

Swipe horizontally to view all columns →
Section Field Mandatory Description
Basic Information Name Yes Name of the API gateway.
  API gateway type Yes Choose Public Access or Protected Access.
  Select Namespace Yes Namespace in which the gateway is created. Click + ADD NAMESPACE to add a new one.
  Select Job Template Yes Select a Job Template to define how the API Gateway will be deployed. The API Gateway Controller Job manages the API Gateway deployment process. You can view or customize the job configuration in the Job Templates section. For more details, refer to the Job Template documentation.
  Select Version of the job template Yes Version of the selected job template (for example, DEFAULT ADMIN JOB TEMPLATE-1.0, Active).
  Choose API gateway Setup Strategy Yes Guided Form (Recommended) or Upload Custom API gateway file / GitOps.
Access Settings Whitelisted IPs Yes IP addresses allowed to access the gateway. Click + Add More to add more IPs, or the delete icon to remove one.
  Deploy Gateway API CRDs (Custom Resource Definitions) No Enable this option when installing the Gateway API for the first time to create the required Custom Resource Definitions (CRDs) in the cluster. If the required CRDs are already installed, you can leave this option disabled.
Gateway Resource Configuration Request Memory Quota / Unit Yes Memory requested for the gateway (default: 100 Mi).
  Limit Memory Quota / Unit Yes Maximum memory for the gateway (default: 500 Mi).
  Request CPU Quota (in millicores) Yes CPU requested for the gateway (default: 100).
  Limit CPU Quota (in millicores) Yes Maximum CPU for the gateway (default: 500).
  Number of Replicas Yes Number of gateway replicas (default: 1).
Proxy Resource Configuration Request Memory Quota / Unit Yes Memory requested for the proxy (default: 100 Mi).
  Limit Memory Quota / Unit Yes Maximum memory for the proxy (default: 500 Mi).
  Request CPU Quota (in millicores) Yes CPU requested for the proxy (default: 100).
  Limit CPU Quota (in millicores) Yes Maximum CPU for the proxy (default: 500).
  Number of Replicas Yes Number of proxy replicas (default: 1).

Click APPLY MANIFEST to apply the configuration, or CANCEL to close the form.

4. API Gateway Deployment #

After you click APPLY MANIFEST, the deployment starts and a progress window opens. It shows the message “API gateway deployment is in progress.. Please wait this might take some time..”

Figure 3: API Gateway Deployment in Progress

Figure 3: API Gateway Deployment in Progress

When the deployment is done, the new API gateway appears in the API gateway List.

Figure 4: API gateway List after Deployment

Figure 4: API gateway List after Deployment