# Python Custom Kong Plugin Issue

**URL:** <https://discuss.konghq.com/t/python-custom-kong-plugin-issue/13737>\
**Category:** Questions\
**Tags:** kubernetes, plugins\
**Created:** [October 4, 2025, 8:01pm UTC](https://discuss.konghq.com/t/python-custom-kong-plugin-issue/13737 "2025-10-04T20:01:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![navind](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/navind/32/5021_2.png) [@navind](https://discuss.konghq.com/u/navind)\
**Post date:** [October 4, 2025, 8:01pm UTC](https://discuss.konghq.com/t/python-custom-kong-plugin-issue/13737/1 "2025-10-04T20:01:01Z")

</div>

I am planning on building a custom plugin using python. so now trying out the official example plugin but its not loading. I am using Kong in AKS  
Step 1:  
helm repo add kong [https://charts.konghq.com](https://charts.konghq.com)

Step 2:  
helm install kong kong/kong --namespace kong --create-namespace --set ingressController.installCRDs=false --set proxy.type=LoadBalancer

Step 3:  
Build and deploy the example plugin ([kong-python-pdk/examples/py-hello.py at master · Kong/kong-python-pdk](https://github.com/Kong/kong-python-pdk/blob/master/examples/py-hello.py)) as shown below

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/konghq/original/2X/c/c930719bd9898970903dd317b977866df8bf156b.png)

Step 4:  
my values file

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/konghq/original/2X/4/400863ca65292257f5215ccb47d296e4baa9ddd9.png)

Step 5:  
updated Kong with values file like below:  
helm upgrade kong kong/kong --namespace kong -f values-plugin.yaml

I see the myplugin.py in the correct location but proxy pod is not working **only** if I enable the plugin. The reason is liveness and readiness probs fails and it keeps restarting.

Logs from proxy:  
**k logs kong-kong-696b666764-mjxcc -c proxy**  
2025/10/04 19:44:11 [warn] 1#0: the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /kong\_prefix/nginx.conf:7  
nginx: [warn] the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /kong\_prefix/nginx.conf:7  
2025/10/04 19:44:11 [notice] 1#0: [lua] license\_helpers.lua:196: read\_license\_info(): [license-helpers] could not decode license JSON: No license found  
2025/10/04 19:44:11 [notice] 1#0: [lua] license\_helpers.lua:196: read\_license\_info(): [license-helpers] could not decode license JSON: No license found

**Events:**  
12m Warning Unhealthy pod/kong-kong-696b666764-mjxcc Liveness probe failed: Get “http://:8100/status”: dial tcp :8100: connect: connection refused  
13m Warning Unhealthy pod/kong-kong-696b666764-mjxcc Liveness probe failed: Get “http://:10254/healthz”: dial tcp 1:10254: connect: connection refused  
12m Warning Unhealthy pod/kong-kong-696b666764-mjxcc Readiness probe failed: Get “http://:10254/readyz”: dial tcp :10254: connect: connection refused  
3m39s Warning Unhealthy pod/kong-kong-696b666764-mjxcc Readiness probe failed: Get “[http://1](http://1):8100/status/ready”: dial tcp :8100: connect: connection refused

am I missing anything? not much help I can find online.

---

<div class="post-metadata">

**Author:** ![fkarnagi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/fkarnagi/32/5112_2.png) [@fkarnagi](https://discuss.konghq.com/u/fkarnagi)\
**Post date:** [January 12, 2026, 12:47pm UTC](https://discuss.konghq.com/t/python-custom-kong-plugin-issue/13737/2 "2026-01-12T12:47:36Z")

</div>

Hi, you can refer to my project, tested working with konnect, kong-gateway 3:13, and python 3.12 [GitHub - fernandokarnagi/kong-python-plugin-example](https://github.com/fernandokarnagi/kong-python-plugin-example)
