I’m currently integrating a custom plugin (developed for Kong gateway) into our Kubernetes setup.
The current problem is that I have mounted the CM with the LUA files but, it don’t seem to be picked up.
For setting up this solution I followed an older custom plugins question answer from @traines but without success. I followed the following procedure
kubectl create configmap custom-plugins --from-file=kong-upstream-gateway/ --namespace kong
- Add the following to the deployment YAML
volumeMounts: - mountPath: /kong-plugins/kong/plugins name: custom-kong-plugins-volume - name: custom-kong-plugins-volume configMap: name: custom-plugins items: - key: access.lua path: access.lua - key: bearer_cache.lua path: bearer_cache.lua - key: gateway_client.lua path: gateway_client.lua - key: handler.lua path: handler.lua - key: json.lua path: json.lua - key: schema.lua path: schema.lua
- Recreated the pod, which shows the mount.
but it doesn’t seem to work . How can validate the custom plugin is correctly available ? and where is a good description of enabling custom plugins in a kubernetes ingress controller Kong environment ?
Some advice would be great