# Kong Custom Plugin setup on Kubernetes

**URL:** <https://discuss.konghq.com/t/kong-custom-plugin-setup-on-kubernetes/839>\
**Category:** Questions\
**Tags:** kubernetes\
**Created:** [April 17, 2018, 8:24am UTC](https://discuss.konghq.com/t/kong-custom-plugin-setup-on-kubernetes/839 "2018-04-17T08:24:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamid\_Raza](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@Hamid\_Raza](https://discuss.konghq.com/u/Hamid_Raza)\
**Post date:** [April 17, 2018, 8:24am UTC](https://discuss.konghq.com/t/kong-custom-plugin-setup-on-kubernetes/839/1 "2018-04-17T08:24:00Z")

</div>

We already have a setup of Kong (Functional - 0.13.0), now when i enable the cusotm\_plugin using the environment variable, the pod is not getting started.

so, this is snippet of kong yaml file for the pod.  
env:

- name: KONG\_CUSTOM\_PLUGINS  
value: “external-oauth”  
command: [“/bin/ash”, “-c”, “luarocks install external-oauth”]

Can anyone help me on this.

---

<div class="post-metadata">

**Author:** ![bungle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/bungle/32/13_2.png) [@bungle](https://discuss.konghq.com/u/bungle)\
**Post date:** [April 17, 2018, 9:04pm UTC](https://discuss.konghq.com/t/kong-custom-plugin-setup-on-kubernetes/839/2 "2018-04-17T21:04:22Z")

</div>

Do you need to run migrations for that plugin? Any errors in logs (e.g. Kong logs)?

---

<div class="post-metadata">

**Author:** ![Hamid\_Raza](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@Hamid\_Raza](https://discuss.konghq.com/u/Hamid_Raza)\
**Post date:** [April 18, 2018, 10:23am UTC](https://discuss.konghq.com/t/kong-custom-plugin-setup-on-kubernetes/839/3 "2018-04-18T10:23:42Z")

</div>

I tried running migration as well, it didn’t help. And in the logs am not getting any error.

---

<div class="post-metadata">

**Author:** ![bungle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/bungle/32/13_2.png) [@bungle](https://discuss.konghq.com/u/bungle)\
**Post date:** [April 18, 2018, 1:54pm UTC](https://discuss.konghq.com/t/kong-custom-plugin-setup-on-kubernetes/839/4 "2018-04-18T13:54:33Z")

</div>

if you start kong with `--vv` does it give any error, and just to recheck did you run migrations with that `KONG_CUSTOM_PLUGINS` too?
