Kong API Gateway

使用Docker拉起KONG API网关,使用外部PG作为元数据存储,对已有API进行管理

Kong API Gateway - 图1

TL;DR

  1. cd app/kong ; docker-compose up -d
  1. make up # pull up kong with docker-compose
  2. make ui # run swagger ui container
  3. make log # tail -f kong logs
  4. make info # introspect kong with jq
  5. make stop # stop kong container
  6. make clean # remove kong container
  7. make rmui # remove swagger ui container
  8. make pull # pull latest kong image
  9. make rmi # remove kong image
  10. make save # save kong image to /tmp/kong.tgz
  11. make load # load kong image from /tmp

Scripts

  • Default Port: 8000
  • Default SSL Port: 8443
  • Default Admin Port: 8001
  • Default Postgres Database: postgres://dbuser_kong:DBUser.Kong@10.10.10.10:5432/kong
  1. # postgres://dbuser_kong:DBUser.Kong@10.10.10.10:5432/kong
  2. - { name: kong, owner: dbuser_kong, revokeconn: true , comment: kong the api gateway database }
  3. - { name: dbuser_kong, password: DBUser.Kong , pgbouncer: true , roles: [ dbrole_admin ] }

Last modified 2022-06-03: add scaffold for en docs (6a6eded)