# Looking for examples and doc reference

**URL:** <https://discuss.konghq.com/t/looking-for-examples-and-doc-reference/5132>\
**Category:** General\
**Created:** [December 11, 2019, 5:17pm UTC](https://discuss.konghq.com/t/looking-for-examples-and-doc-reference/5132 "2019-12-11T17:17:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![arvtiwar](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@arvtiwar](https://discuss.konghq.com/u/arvtiwar)\
**Post date:** [December 11, 2019, 5:17pm UTC](https://discuss.konghq.com/t/looking-for-examples-and-doc-reference/5132/1 "2019-12-11T17:17:37Z")

</div>

Hi friends,

First, I am new to Kong.

I have set up DBless Kong on DO K8S, where Kong is proxying to Web and API backends. We have multiple APIs (e.g. users, login, categories etc…). Below docs, I have set up the kong proxy but I don’t find any docs where multiple API resources are setup

> <https://github.com/Kong/kubernetes-ingress-controller/blob/master/docs/guides/using-kongingress-resource.md>

Appreciate if you guys could point me to the doc resource and example where multiple API resources are configured.

Thank a lot in advance

Arvind

---

<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:** [December 12, 2019, 7:17pm UTC](https://discuss.konghq.com/t/looking-for-examples-and-doc-reference/5132/2 "2019-12-12T19:17:26Z")

</div>

You can repeat the same steps for other APIs.

---

<div class="post-metadata">

**Author:** ![arvtiwar](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@arvtiwar](https://discuss.konghq.com/u/arvtiwar)\
**Post date:** [December 12, 2019, 7:53pm UTC](https://discuss.konghq.com/t/looking-for-examples-and-doc-reference/5132/3 "2019-12-12T19:53:37Z")

</div>

Thanks for the response  
So basically for each API resources (/v1/resource1, /v1/resource2, etc… ) we need separate KongIngress?  
What is I have to add rate-limit rule at sub resource (/v1/resource1/{id}/sub-resource) level?  
Appreciate if you can point to any example

Thanks,  
Arvind

---

<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:** [December 12, 2019, 10:13pm UTC](https://discuss.konghq.com/t/looking-for-examples-and-doc-reference/5132/4 "2019-12-12T22:13:20Z")

</div>

> [@arvtiwar](#):
>
> So basically for each API resources (/v1/resource1, /v1/resource2, etc… ) we need separate KongIngress?

You don’t need a KongIngress resource for these.  
KongIngress resource is only for extending the Ingress resource.

You can club multiple rules inside the same Ingress resource as well. You don’t necessarily need a separate Ingress resource for each API resource.

> [@arvtiwar](#):
>
> What is I have to add rate-limit rule at sub resource (/v1/resource1/{id}/sub-resource) level?

For that specific route, you need to have a different Ingress resource, and then apply a rate-limiting plugin on top of it.

---

<div class="post-metadata">

**Author:** ![arvtiwar](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@arvtiwar](https://discuss.konghq.com/u/arvtiwar)\
**Post date:** [December 13, 2019, 6:04pm UTC](https://discuss.konghq.com/t/looking-for-examples-and-doc-reference/5132/5 "2019-12-13T18:04:47Z")

</div>

Thanks Harry, Let me try it.

---

<div class="post-metadata">

**Author:** ![arvtiwar](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@arvtiwar](https://discuss.konghq.com/u/arvtiwar)\
**Post date:** [December 13, 2019, 8:22pm UTC](https://discuss.konghq.com/t/looking-for-examples-and-doc-reference/5132/6 "2019-12-13T20:22:09Z")

</div>

Hi Harry,

Thanks, but can you please point how to setup kong cors plugin on ingress?

Thanks,  
Arvind

---

<div class="post-metadata">

**Author:** ![arvtiwar](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@arvtiwar](https://discuss.konghq.com/u/arvtiwar)\
**Post date:** [December 13, 2019, 8:26pm UTC](https://discuss.konghq.com/t/looking-for-examples-and-doc-reference/5132/7 "2019-12-13T20:26:19Z")

</div>

does this plug cong looks good?

apiVersion: [configuration.konghq.com/v1](http://configuration.konghq.com/v1)  
kind: KongPlugin  
metadata:  
name: http-cors  
namespace: app-dev  
plugin: cors  
config:  
origins: “[https://my.origin.net](https://my.origin.net)”  
methods:

- GET
- POST
- PUT
- DELETE
- PATCH
- OPTIONS  
headers:
- Accept
- Accept-Version
- Content-Length
- Content-MD5
- Content-Type
- Date
- X-Auth-Token  
exposed\_headers: X-Auth-Token  
credentials: true  
max\_age: 3600
