微服务之API网关 kong 辅助UI之kong-dashboard

这篇文章介绍一下kong相关的辅助生态的UI之一kong-datashbaord。

事前准备

事前按照如下进行安装和路由验证之后,即可通过dashboard确认kong相关信息了

介绍 链接
kong:概要与安装 https://mp.csdn.net/mdeditor/80442222
kong:使用场景之路由功能 https://mp.csdn.net/mdeditor/80466616

基本信息

项目 说明
开源/闭源 开源
License类别 MIT License
代码管理地址 https://github.com/PGBI/kong-dashboard
开发语言 JavaScript,HTML
支持平台 提供标准镜像,可运行于多种操作系统
当前版本 3.3.0 (2017/05/13)
更新频度 目前平均每月一次更新

下载镜像

[root@kong ~]# docker pull pgbi/kong-dashboard

事前确认

事前需要确认kong是否能够在8001正常动作

[root@kong ~]# curl http://192.168.163.117:8001/status
{"database":{"reachable":true},"server":{"connections_writing":1,"total_requests":9,"connections_handled":9,"connections_accepted":9,"connections_reading":0,"connections_active":1,"connections_waiting":0}}
[root@kong ~]# 
  • 1
  • 2
  • 3

启动容器

docker run –rm -p 8080:8080 pgbi/kong-dashboard start –kong-url http://192.168.163.117:8001 –basic-auth liumiaocn=liumiao123

执行日志

[root@kong ~]# docker run --rm -p 8080:8080 pgbi/kong-dashboard start --kong-url http://192.168.163.117:8001 --basic-auth liumiaocn=liumiao123
Connecting to Kong on http://192.168.163.117:8001 ...
Connected to Kong on http://192.168.163.117:8001.
Kong version is 0.13.1
Starting Kong Dashboard on port 8080
Kong Dashboard has started on port 8080
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

登陆

输入事前设定的用户名和密码进行登陆
这里写图片描述

功能确认

这里写图片描述

具体操作

从这里可以清晰地看到API操作相关的信息,可以对API进行CRUD的操作
这里写图片描述

其他也是如此,kong-dashboard就是通过kong的api实现了对API/plugins/upstream等操作的UI界面

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

猜你喜欢

转载自www.cnblogs.com/firsttry/p/10294482.html
今日推荐