# Custom Plugins on Kubernetes

**URL:** <https://discuss.konghq.com/t/custom-plugins-on-kubernetes/7878>\
**Category:** Questions\
**Tags:** kubernetes\
**Created:** [February 9, 2021, 11:49pm UTC](https://discuss.konghq.com/t/custom-plugins-on-kubernetes/7878 "2021-02-09T23:49:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anders\_Swanson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/anders_swanson/32/2545_2.png) [@Anders\_Swanson](https://discuss.konghq.com/u/Anders_Swanson)\
**Post date:** [February 9, 2021, 11:49pm UTC](https://discuss.konghq.com/t/custom-plugins-on-kubernetes/7878/1 "2021-02-09T23:49:29Z")

</div>

Hi,

I’m trying to install/use custom plugins on Kong running in Kubernetes, and am facing some issues. Currently, it appears that my plugins are loaded by are not applied to incoming requests.

I have several plugins installed as ConfigMaps, of the following format:  
apiVersion: v1  
kind: ConfigMap  
metadata:  
name: kong-my-plugin  
namespace: my-namespace  
data:  
handler.lua: |  
– handler code…  
schema.lua: |  
– schema code…

I can see these plugins are mounted on the kong deployment, and when I look at the pod environment, they are listed in the KONG\_PLUGINS environment variable (there are also no errors on kong pod startup). However, when I create an Ingress object and attach the KongPlugin objects via the **[plugins.konghq.com](http://plugins.konghq.com)** annotation, the corresponding plugin code does not seem to execute for any requests to kong.

For reference, I am using the following values for the Kong helm chart:  
plugins:  
configMaps:

- name: kong-plugin-one  
pluginName: plugin-one
- name: kong-my-plugin  
pluginName: my-plugin

ingressController:  
installCRDs: false

securityContext:  
runAsUser: 1337  
runAsGroup: 0  
fsGroup: 0  
image:  
tag: 2.3.1

Am I missing any configuration on setting up custom plugins? Any help is appreciated, thanks.

---

<div class="post-metadata">

**Author:** ![Anders\_Swanson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/anders_swanson/32/2545_2.png) [@Anders\_Swanson](https://discuss.konghq.com/u/Anders_Swanson)\
**Post date:** [March 22, 2021, 8:34pm UTC](https://discuss.konghq.com/t/custom-plugins-on-kubernetes/7878/2 "2021-03-22T20:34:31Z")

</div>

Bumping, any ideas here on why the plugins would not be used by Kong?

---

<div class="post-metadata">

**Author:** ![Anders\_Swanson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/anders_swanson/32/2545_2.png) [@Anders\_Swanson](https://discuss.konghq.com/u/Anders_Swanson)\
**Post date:** [March 31, 2021, 3:28pm UTC](https://discuss.konghq.com/t/custom-plugins-on-kubernetes/7878/3 "2021-03-31T15:28:27Z")

</div>

Figured this out, had to do with multiple configuration issues on the ingress side and the plugin side that were brought about by differences in a previous kong install and the helm chart kong install.
