Installing KONG

Kong is available to install in multiple operating environments and for containers such as Docker. We will go through the installation process using Docker.

Before installing KONG, you will need to know about Docker; please read through Chapter 12Containerizing Microservice.

Here, I am going to use the DockerHub repository to find the Docker image of KONG. In the following example, I will link a KONG Docker container to a Cassandra Docker container. Perform the following steps:

  1. Use the Cassandra container to store information related to the KONG API. Use the following command:
  1. Migrate the Cassandra database with the KONG container by using the following command:
  1. Start KONG:

I have used port 8000 for a non-SSL API call, and port 8443 is used for an SSL-enabled API call. The port 8001 is used to administrate your KONG installation through the RESTful Admin API.

  1. Verify the KONG installation:

I have accessed http://192.168.99.100:8001/. It returns data in JSON format from the KONG API.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.190.239.166