Prerequisites
Before installing Nantian Gateway, verify that the environment meets the following requirements.
Kubernetes Cluster
Section titled “Kubernetes Cluster”A Kubernetes cluster running version 1.28 or later is required. Any conformant Kubernetes distribution is supported, from local development environments to managed cloud services.
For local development, Kind (Kubernetes IN Docker) is the recommended tool. It is a single-binary, fast cluster creation utility that works well with the project’s preconfigured Kind configurations.
Creating a Kind Cluster
Section titled “Creating a Kind Cluster”Install Kind from the official releases page. Create a cluster using the provided configuration:
kind create cluster --config gateway/deploy/kubernetes/overlays/kind/kind-config.yamlThis configuration creates a single-node cluster with host port mappings for gateway access:
| Service | Cluster Port | Host Port |
|---|---|---|
| HTTP | 30080 | 18080 |
| HTTPS | 30443 | 18443 |
| UDP primary | 30000 | 5300 |
| UDP secondary | 30001 | 5301 |
| Admin API | 30000 | 19000 |
| Admin API (gRPC) | 30001 | 19001 |
After deployment, the gateway is accessible at http://localhost:18080.
Verify the cluster is operational:
kubectl cluster-infoExpected output:
Kubernetes control plane is running at https://127.0.0.1:XXXXCoreDNS is running at https://127.0.0.1:XXXX/api/v1/namespaces/kube-system/services/kube-dns:dns/proxyCLI Tools
Section titled “CLI Tools”The following command-line tools must be installed and available in PATH:
| Tool | Minimum Version | Purpose |
|---|---|---|
kubectl | 1.28 | Cluster interaction and manifest application |
helm | 3.12 | Nantian Gateway installation via Helm chart |
kubectl
Section titled “kubectl”Install kubectl following the official Kubernetes documentation. Verify the installation:
kubectl version --clientExpected output (version numbers vary by installation):
Client Version: v1.31.0Kustomize Version: v5.4.2Install Helm following the official Helm documentation. Verify the installation:
helm version --shortExpected output:
v3.14.0+ge36b354Gateway API CRDs
Section titled “Gateway API CRDs”Nantian Gateway requires the Kubernetes Gateway API CRDs to be installed on the cluster. These CRDs define the Gateway, GatewayClass, HTTPRoute, and other resource types that the gateway uses for configuration.
Install the Gateway API CRDs using the standard upstream channel:
kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.5.1/standard-install.yamlVerify the CRDs are installed:
kubectl get crd gateways.gateway.networking.k8s.ioExpected output:
NAME CREATED ATgateways.gateway.networking.k8s.io 2024-01-01T00:00:00ZNext Steps
Section titled “Next Steps”After verifying all prerequisites, proceed to the Quick Start to deploy Nantian Gateway.