Hello Kong Community,
I’m trying to install a custom plugin in Kong without using a Docker build, specifically using Helm in a Kubernetes environment. I am using Kong version 3.6.1.
What I am trying to do:
I want to add my custom plugin to the Kong Gateway and ensure it is recognized and operational.
What I followed:
I referred to the [Kong documentation] for guidance on how to achieve this. Following the instructions, I was able to successfully create a ConfigMap, which I confirmed by running kubectl get configmaps
.
What I checked:
Since I used the kong/ingress
Helm chart, I also verified the deployments. The gateway description shows that the KONG_LUA_PACKAGE_PATH
is configured correctly as:
/opt/?.lua;/opt/?/init.lua;;
And the KONG_PLUGINS
includes:
bundled,my_custom_plugin
Debugging Steps:
I ran the following command to check the contents of the Kong gateway pod:
kubectl exec -it {kong-gateway-pod-name} -n default – /bin/sh
I can see my plugin in the directory /opt/kong/plugins
with the command:
ls /opt/kong/plugins
However, I noticed that my plugin is not present in:
ls /usr/local/share/lua/5.1/kong/plugins/
Question:
What could be causing my custom plugin not to appear in /usr/local/share/lua/5.1/kong/plugins/
, and how can I resolve this issue? Any insights or troubleshooting tips would be greatly appreciated!
Thank you!