# Kong.yml using DB-less mode and Ingress Controller

**URL:** <https://discuss.konghq.com/t/kong-yml-using-db-less-mode-and-ingress-controller/7172>\
**Category:** General\
**Tags:** kong-gateway\
**Created:** [September 18, 2020, 4:23pm UTC](https://discuss.konghq.com/t/kong-yml-using-db-less-mode-and-ingress-controller/7172 "2020-09-18T16:23:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreSpinelli](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@AndreSpinelli](https://discuss.konghq.com/u/AndreSpinelli)\
**Post date:** [September 18, 2020, 4:23pm UTC](https://discuss.konghq.com/t/kong-yml-using-db-less-mode-and-ingress-controller/7172/1 "2020-09-18T16:23:06Z")

</div>

Hello!

I’m setting up a installation of Kong Gateway in my test environment using an Ingress Controller and db-less mode.  
According to the values.yaml documentation, if I use db-less mode and not an Ingress controller I cannot set the kong.yml on the dblessConfig.

> <https://github.com/Kong/charts/blob/6e815ca79e62eaa776c4f79a888e83e7e3ac05d7/charts/kong/values.yaml#L234-L236>

My question is where do I need to configure to start my application with my kong.yml that I have?

Thank you!  
Andre

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [September 21, 2020, 8:24pm UTC](https://discuss.konghq.com/t/kong-yml-using-db-less-mode-and-ingress-controller/7172/2 "2020-09-21T20:24:37Z")

</div>

> [@AndreSpinelli](#):
>
> My question is where do I need to configure to start my application with my kong.yml that I have?

If you would like to use Kong in DB-less mode without the ingress controller, then you can specify the content of kong.yml (your configuration) under `dblessConfig` property`. There are two ways to do it, either use a config map or simply specify the configuration inline under the `config` key.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![AndreSpinelli](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@AndreSpinelli](https://discuss.konghq.com/u/AndreSpinelli)\
**Post date:** [September 22, 2020, 3:29pm UTC](https://discuss.konghq.com/t/kong-yml-using-db-less-mode-and-ingress-controller/7172/3 "2020-09-22T15:29:32Z")

</div>

Hi @hbagdi! Thanks for the answer!

According to what you explained:

> If you would like to use Kong in DB-less mode **without** the ingress controller…

My point is: Is there a way to configure Kong DB-less mode **with** the ingress controller?

Thank you!  
Andre

---

<div class="post-metadata">

**Author:** ![AndreSpinelli](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@AndreSpinelli](https://discuss.konghq.com/u/AndreSpinelli)\
**Post date:** [September 22, 2020, 4:24pm UTC](https://discuss.konghq.com/t/kong-yml-using-db-less-mode-and-ingress-controller/7172/4 "2020-09-22T16:24:14Z")

</div>

@hbagdi using this configuration I got it to do my tests!

Thank you for the help!  
Andre

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [September 22, 2020, 6:24pm UTC](https://discuss.konghq.com/t/kong-yml-using-db-less-mode-and-ingress-controller/7172/5 "2020-09-22T18:24:44Z")

</div>

> [@AndreSpinelli](#):
>
> Is there a way to configure Kong DB-less mode **with** the ingress controller?

Not via the chart. You can use the Admin API directly to add in some configuration, although that is discouraged.

---

<div class="post-metadata">

**Author:** ![shahamit](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@shahamit](https://discuss.konghq.com/u/shahamit)\
**Post date:** [June 8, 2023, 11:09am UTC](https://discuss.konghq.com/t/kong-yml-using-db-less-mode-and-ingress-controller/7172/6 "2023-06-08T11:09:56Z")

</div>

I am trying to setup kong as a gateway (in db-less mode) and put an ingress resource (through kong-ingress-controller) in front of it to expose our microservice apis to the external world.

Following [this](https://www.youtube.com/watch?v=FCaG6HBFeR4) video I understand that kong-ingress-controller v2.9 has the capability to do gateway discovery. Repo [link](https://github.com/Kong/demo-scene/tree/2ccd21a1a57da453288abbb9dd8dba2926c8cea2/kic/2.9)

My question is - After configuring two helm deployments (one for gateway and another for kic) how do we configure the kubernetes ingress resource to point to the gateway?

Thanks.
