Gateway
Add Gateway Node
A gateway node is a data plane node and one of the core components of API7. It is responsible for handling all incoming API requests and returning responses.
In production, it is recommended to deploy two or more data plane nodes to prevent a single point of failure. Adding more nodes can provide better horizontal scalability and support more business traffic.
The data plane nodes should be deployed before adding them to the control plane.
- Log in to the API7 Enterprise dashboard.
- In the top navigation menu, click on Cluster Management .
- In the left menu bar, click on Cluster List .
- Click on More button corresponding to the cluster in the list, and in the dropdown menu, click on Copy cluster info.
- Install the API7-Gateway data plane component on a new node.
- After successfully installing API7-Gateway, modify the configuration file:
vim /usr/local/apisix/conf/config.yaml
etcd:
host:
- "http://api7-dashboard-etcd.api7.svc.cluster.local:2379"
prefix: "/api7/452869103972058061"
timeout: 30
- Restart API7-Gateway:
# RPM
apisix restart
# docker
docker restart ${containerID}
# k8s
kubectl delete pod ${podID} -n ${namespace}