I am using python hello world plugin to test how custom plugin works.
I am using Kong helm chart for deployment. But pod logs shows, it is unable to process the plugin.
I don’t want to use Lua, rather we want to use python as language for our custom plugins. Any help on how to enabled python plugin in helm based kong deployment.
Added hello.py to configmap
kubectl create configmap kong-plugin-hello --from-file=hello.py -n localkong
Current image
image:
Kong Only Gateway —no license----
#repository: kong
#tag: “2.4”
Kong Enterprise
repository: kong/kong-gateway
tag: “2.4.1.1-alpine”
updated values.yaml
plugins:
configMaps:
- pluginName: hello
name: kong-plugin-hello
But pods are crashing
kubectl logs kong-kong-5c95ff89bf-6fhcd proxy -n localkong
2021/07/13 02:12:24 [error] 1#0: init_by_lua error: /usr/local/share/lua/5.1/kong/init.lua:578: error loading plugin schemas: on plugin ‘hello’: hello plugin is enabled but not installed;
no plugin found
stack traceback:
[C]: in function ‘assert’
/usr/local/share/lua/5.1/kong/init.lua:578: in function ‘init’
init_by_lua:3: in main chunk
nginx: [error] init_by_lua error: /usr/local/share/lua/5.1/kong/init.lua:578: error loading plugin schemas: on plugin ‘hello’: hello plugin is enabled but not installed;
no plugin found
stack traceback:
[C]: in function ‘assert’
/usr/local/share/lua/5.1/kong/init.lua:578: in function ‘init’
init_by_lua:3: in main chunk