# Kong for Kubernetes - DB Setup

**URL:** <https://discuss.konghq.com/t/kong-for-kubernetes-db-setup/8141>\
**Category:** General\
**Tags:** kubernetes\
**Created:** [March 30, 2021, 9:59pm UTC](https://discuss.konghq.com/t/kong-for-kubernetes-db-setup/8141 "2021-03-30T21:59:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ragunath\_Sudalaimuth](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/ragunath_sudalaimuth/32/2667_2.png) [@Ragunath\_Sudalaimuth](https://discuss.konghq.com/u/Ragunath_Sudalaimuth)\
**Post date:** [March 30, 2021, 9:59pm UTC](https://discuss.konghq.com/t/kong-for-kubernetes-db-setup/8141/1 "2021-03-30T21:59:33Z")

</div>

As most of the plugin require DB mode, is there any documentation on how to setup kong for kubernetes with DB mode and integrate with database?

Also I see OAuth Authentication plugin doesnt work in DB-less and Hybrid mode. In Hybrid mode, I see we can configure DB in Control plane. Even then why OAuth Authentication doesnt work here?

Is there a way that Kong can integration with external OAuth provider?

---

<div class="post-metadata">

**Author:** ![danilo.bondezan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/danilo.bondezan/32/2662_2.png) [@danilo.bondezan](https://discuss.konghq.com/u/danilo.bondezan)\
**Post date:** [April 23, 2021, 9:56pm UTC](https://discuss.konghq.com/t/kong-for-kubernetes-db-setup/8141/2 "2021-04-23T21:56:48Z")

</div>

Almost or all plugins are compatible with dbless k4k8s

> **[Open-Source API Management and Microservice Management](https://docs.konghq.com/kubernetes-ingress-controller/1.1.x/references/plugin-compatibility/)**
>
> Secure, Manage & Extend your APIs or Microservices with plugins for authentication, logging, rate-limiting, transformations and more.

You can still use kong with DB, you just need to configure that.

kong has oidc plugin, maybe you can use with external oauth provider.

---

<div class="post-metadata">

**Author:** ![xguru](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/xguru/32/41_2.png) [@xguru](https://discuss.konghq.com/u/xguru)\
**Post date:** [April 26, 2021, 1:20am UTC](https://discuss.konghq.com/t/kong-for-kubernetes-db-setup/8141/3 "2021-04-26T01:20:58Z")

</div>

`oauth2` plugin needs to both generate and delete tokens, and commit those changes to the database, which is not compatible with DB-less.

You might also able to run Kong with DB in Kubernetes.
