Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.53 KB

how-to-deploy.md

File metadata and controls

39 lines (31 loc) · 1.53 KB

How to deploy

  1. Setup APISIX and Kong, if you don't have them

    Recommend to use docker compose to deploy APISIX or Kong:

  2. Dump Kong Configuration with Deck or CLI, for detailed usage, please refer to:

  3. Run Kong-To-APISIX, and it would generate apisix.yaml as declarative configuration file for APISIX.

    make build
    export KONG_YAML_PATH="/PATH/TO/YOUR/Kong.yaml"
    ./bin/kong-to-apisix
  4. Configure APISIX using apisix.yaml by move it to /PATH/TO/APISIX/conf/apisix.yaml. Add the following to config.yaml at /PATH/TO/APISIX/conf/config.yaml:

    apisix:
        config_center: yaml
        enable_admin: false

    If you deploy APISIX with docker compose, you need to add apisix.yaml to volumes. You could change docker-compose.yml and re-do docker-compose up

    volumes:
      - ./apisix_log:/usr/local/apisix/logs
      - ./apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
      - ./apisix_conf/apisix.yaml:/usr/local/apisix/conf/apisix.yaml:ro
  5. Reload APISIX to make declarative configuration work and now test with your new API Gateway

    /PATH/TO/APISIX/bin/apisix reload