This article is a mirror article of machine translation, please click here to jump to the original article.

View: 10342|Reply: 0

Docker deployment kong-dashboard tutorial

[Copy link]
Posted on 11/21/2018 2:30:09 PM | | | |
kong-dashboard is a GUI that allows you to conveniently manage Kong Gateway settings in a web interface and provides features and services such as request routing, authentication, rate limiting, and more.

In fact, the kong management API has a series of interfaces, and you can directly use crul to complete the management, but there is a third kong-dashboard, which I personally am lazy about, so I use the management interface of kong-dashboard to operate.

GitHub address:The hyperlink login is visible.
Docker Hub address:The hyperlink login is visible.

kong-dashboard compatibility comparison



First, to install kong on the server, the tutorial is as follows:

Deploy Kong API Gateway on CentOS 7
https://www.itsvse.com/thread-5682-1-1.html
(Source: Architect_Programmer)

I installed the version: Kong 0.14.1

Pull the mirror


Launch Kong Dashboard


The error is as follows:

Could not reach Kong onThe hyperlink login is visible.
Error details:
{ Error: connect ECONNREFUSED 127.0.0.1:8001
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1161:14)
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 8001 }

We are using docker, and kong is deployed on our host machine, how can we use 127.0.0.1??? So how do you get docker containers to access the host machine???

Here, you need to modify the following kong.conf configuration file as follows:

Restart the kong service.

Modify the command as follows:

Connecting to Kong onThe hyperlink login is visible....
Connected to Kong onThe hyperlink login is visible.
Kong version is 0.14.1
Starting Kong Dashboard on port 8080
Kong Dashboard has started on port 8080

The startup is successful, as shown in the following figure:



Browser access: IP: 8080, create an API gateway as shown in the figure below:



In the lower right corner of the website, you can see the node and version information

Kong node:The hyperlink login is visible.v0.14.1 — Kong-Dashboard v3.5.0

Anyone can access the Kong-Dashboard to control the KONG API gateway, and for added security, it is recommended to set up authentication as follows:

In this way, we need to enter the username and password to open the kong-dashboard, the username is admin, and the password is itsvse.

kong also has a well-known API management GUI - KONGA, GitHub address:The hyperlink login is visible.I will study it again when I have time in the future.

(End)




Previous:CentOS 7 Docker deploys PostgreSQL 9.6
Next:Use the kong rate-limiting plug-in to control the request rate of the interface
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com