Code Monkey home page Code Monkey logo

kong-to-apisix's Introduction

Kong-To-APISIX

Go Report Card Build Status Codecov

Kong-To-APISIX is a migration tool helping you migrate configuration data of your API gateway from Kong to Apache APISIX. It aims to help people to dip their toes in APISIX and also reduce the operations cost.

Only tested with APISIX 2.8 and Kong 2.4 for now.

How to use

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

  2. Build Kong to APISIX, go version require 1.16+ใ€‚

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

    $ make build
    $ ./bin/kong-to-apisix migrate -i kong.yaml -o apisix.yaml
    migrate succeed
  4. Configure APISIX with apisix.yaml, see https://apisix.apache.org/docs/apisix/stand-alone for details.

If more help needed, you could refer detail steps

Support features

  1. Kong service is converted to APISIX service (including: ID, name, retry, protocol, timeout, path, port, host (default upstream))
  2. Kong route is converted to APISIX route (including: ID, name, methods, hosts, paths(Path handling algorithms), regex_priority)
  3. Kong upstream is converted to APISIX upstream (including: ID, name, algorithm, upstream.target.target, upstream.target.weight)
  4. Kong consumer is converted to APISIX consumer (including: ID, username, custom_id, plugins.keyauth_credentials, plugins.basicauth_credentials, plugins.hmacauth_credentials, plugins.jwt_secrets)
  5. Kong plugin is converted to APISIX plugin (including: key-auth, rate-limiting, proxy-cache)
  6. Kong global plugin is converted to APISIX global_rule (including: key-auth, rate-limiting, proxy-cache)

Roadmap

  • Improving and completing current apis, eg. support tcp/tls in kong to stream route in APISIX
  • Provide migration report, to declare what has been migrated and those currently not supported
  • Support sni, certificates, ca_certificates configuration migration
  • Support 15+ common plugins
  • Support customized plugin migration
  • Support Incremental migration

kong-to-apisix's People

Contributors

shuaijinchao avatar yiyiyimu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.