Skip to content

This should be a fast start to understand or use an api gateway on kubernetes leveraging the Kong ingress

Notifications You must be signed in to change notification settings

tuxerrante/kubernetes_kong_api_management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This should be a fast start to understand and use an api gateway on kubernetes leveraging the Kong ingress.

KONG INGRESS CONTROLLER

Kong Gateway is an open-source, lightweight API gateway optimized for microservices, delivering unparalleled latency, performance, and scalability.

What the script does:

  • Installs Kong ingress controller
  • Installs the echo server with relative service
  • Modify the metadata of the echo server to install it again as a version 2.0
  • Update the ingress to route the requests to different APIs to the different services
  • Use 'uri-rewrites' to delete the "api" part from the invoked URI, before sending the request to the endpoint app. [docs]

Action

The best way to use the code is to read the comments and to copy-paste the instructions from install_echo_apis.sh, understanding what is going on under the hoods, this is also why I have added some extra monitoring command.

If you don't have a K8S cluster available you can use the Katacoda environment or install minikube on your machine.

  1. Go on your preferred environment. Katacoda some times gets stuck, so don't rely on that terminal state.. ;)
  2. Star and fork this repo :)
  3. Clone your forked repo on the machine
  4. cd kubernetes_kong_api_management/
  5. Since this is a didactical repo, it has no meaning to do a blind-run script. So it is better to copy paste a command at a time.

A preview of how the ingress can eat the "api" part of the URI, so to be transparent to the backend endpoint clusters. kong uri rewrite

Sources

Next Actions

About

This should be a fast start to understand or use an api gateway on kubernetes leveraging the Kong ingress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages