Python Plugin in Kong Helm Chart

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

Did you add the correct configurations to kong.conf? I think the plugin loader is looking for a schema.lua, but for the python pdk the schema is located in the .py file itself. Make sure to add these to kong.conf.

plugins = bundled, python-plugin-name
pluginserver_names = python-plugin-name
pluginserver_python_plugin_name_socket=/usr/local/kong/python_plugin_name.sock
pluginserver_python_plugin_name_start_cmd=/usr/local/kong/python-plugins/python-plugin-name.py
pluginserver_python_plugin_name_query_cmd=/usr/local/kong/python-plugins/python-plugin-name.py -d