Issues with Updating Custom Plugin in Kong via Helm on Kubernetes

Hello Kong Community,

I successfully installed a custom plugin in Kong using Helm in a Kubernetes environment, and I can use it with my service as expected. However, I am facing a challenge when trying to update my handler.lua file.

What I’ve Done:

  • I’ve made updates to my handler.lua file.
  • I applied the changes to the ConfigMap using kubectl apply.
  • I upgraded the Helm Kong chart.
  • I reapplied the configuration where I created the plugin.

The Issue:

Despite performing these steps, the changes to the plugin do not reflect. The updates only take effect when I uninstall the Helm Kong chart and reinstall it, then perform all the above actions again.

What I’ve Tried:

  • I attempted to hit the cache API to refresh the plugin settings, but this did not resolve the issue.

Question:

Are there any additional steps or configurations I should consider to facilitate smoother updates to custom plugins?

Likely you need to restart Kong for the plugin changes to take effect.
What I’ve done, is that I build my docker image along with my custom plugin code, all in the same image. That way I deploy the whole image to kubernetes, and that takes care of having the code updated. IT takes longer but saves me a lot of troubleshooting.
I only use lua code, and I build all the plugins using luarocks when building the image