Reference:/posts/apisix how to add custom plugins/
First of all, we need to add to the custom plugin user-remote-auth to apisix, this piece is not clear to the students, you can refer to me this article: [apisix~lua plugin development and plugin registration], after adding it successfully, pass thecurl :9180/apisix/admin/plugins/user-remote-auth -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'
command is available to query specific plugin information.
Adding custom plugins to the dashboard platform
- Get the plugin's files from apisix-admin
- Add the custom plugin schema to this file
- Update the apisix-dashboard file to mount this file
From File
- Go to the dashboard container and download the file /usr/local/apisix-dashboard/conf/.
Add the custom plugin schema to this file
- pass (a bill or inspection etc)
curl :9180/apisix/admin/plugins/user-remote-auth -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'
Get the plugin schema information, or view the schema subsection of the plugin's lua scripts - Add a custom plugin to add, as shown
Update the apisix-dashboard file to mount this file
Add k8s configmap
Updating the k8s apisix-dashboard service
View new plugins in the dashboard