Kong: API Gateway
Kong is an open-source API gateway.
Pigsty’s app/kong template stores configuration in PostgreSQL. For a new empty database, explicitly run the one-time kong-migration initialization job. Normal startup does not run it automatically.
Quick Start
By default, the template binds the Admin API to the host loopback address (127.0.0.1:${KONG_ADMIN_PORT}:${KONG_ADMIN_PORT}) and publishes only the HTTP/HTTPS proxy ports externally:
Default ports:
- Proxy HTTP:
8000 - Proxy HTTPS:
8443 - Admin API:
127.0.0.1:8001, host loopback only; use an SSH tunnel for remote administration
make bootstrap runs kong migrations bootstrap; it is not an upgrade command for an existing database. The template defaults to kong:latest. Before upgrading, record the image version, back up the database, and follow the Kong migration procedure for that version.
Database Preparation
Connection string example:
Common Commands
References
- Kong docs: https://docs.konghq.com/
- Pigsty template: https://github.com/pgsty/pigsty/tree/main/app/kong
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)