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:
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:
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
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)
|