-
I am following this guide to create a custom plugin for my kong ingress controller running on k3d + k3s. Following the steps as is in the guide still causes the ingress-kong-xxx pod to crash with the error logs as below. I tried many tweaks but nothing helped. From the error it seems the schema.lua file is incorrect but its exactly what is shown in the guide. Could someone guide me to understand whats wrong? Thanks. P.S - Is there a way to start the ingress-kong pod or the proxy container in debug like it is suggested here as a troubleshooting step for kong a standalone gateway ? Output of
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The problem you're having would seem to be because the plugin isn't in the search path:
This means that the plugin file is not in the lua path or otherwise findable by Kong. The standard location for plugins is
I can't be sure from just the describe output you provided but it would seem that something got misconfigured between the above three configurations. Also note that if |
Beta Was this translation helpful? Give feedback.
The problem you're having would seem to be because the plugin isn't in the search path:
This means that the plugin file is not in the lua path or otherwise findable by Kong.
The standard location for plugins is
/usr/local/share/lua/5.1/kong/plugins
but this guide has you use/opt/kong/plugins
and change the search path to include it. Double check the following:KONG_LUA_PACKAGE_PATH
I can't be sure from just the describe output you provided but it would s…