# Configure Kong to work with websockets inside my AWS EKS k8s

**URL:** <https://discuss.konghq.com/t/configure-kong-to-work-with-websockets-inside-my-aws-eks-k8s/9644>\
**Category:** General\
**Tags:** kubernetes, kong-gateway\
**Created:** [January 14, 2022, 7:50am UTC](https://discuss.konghq.com/t/configure-kong-to-work-with-websockets-inside-my-aws-eks-k8s/9644 "2022-01-14T07:50:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Angel\_Sanchez](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/miguel_angel_sanchez/32/3216_2.png) [@Miguel\_Angel\_Sanchez](https://discuss.konghq.com/u/Miguel_Angel_Sanchez)\
**Post date:** [January 14, 2022, 7:50am UTC](https://discuss.konghq.com/t/configure-kong-to-work-with-websockets-inside-my-aws-eks-k8s/9644/1 "2022-01-14T07:50:03Z")

</div>

Hi,

I want to try if a webSockets server works in my AWS EKS k8s with kong ingress controller.  
Does anyone know if I need to add something to kong in order to work?  
Do you know an example of dummy websockets so I can try if it works with EKS + kong?

I only found a reference: [Proxy Reference - Kong Gateway - v2.7.x | Kong Docs](https://docs.konghq.com/gateway/2.7.x/reference/proxy/#proxy-websocket-traffic)

Thanks

---

<div class="post-metadata">

**Author:** ![traines](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/traines/32/158_2.png) [@traines](https://discuss.konghq.com/u/traines)\
**Post date:** [January 17, 2022, 5:54pm UTC](https://discuss.konghq.com/t/configure-kong-to-work-with-websockets-inside-my-aws-eks-k8s/9644/2 "2022-01-17T17:54:48Z")

</div>

Websockets should not require any special configuration: you only need to set up a generic HTTP route via an Ingress and it will support websockets automatically. We use the underlying NGINX implementation, which [handles websocket traffic without configuration beyond propagation of the `Upgrade` and `Connection` headers](http://nginx.org/en/docs/http/websocket.html). Kong [handles header propagation for you](https://github.com/Kong/kong/blob/36bd2d0941690c4282e067fbf561e0397e410dca/kong/templates/nginx_kong.lua#L204-L205).

Offhand, I don’t know of any good dummy websocket endpoint application for testing.

---

<div class="post-metadata">

**Author:** ![Miguel\_Angel\_Sanchez](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/miguel_angel_sanchez/32/3216_2.png) [@Miguel\_Angel\_Sanchez](https://discuss.konghq.com/u/Miguel_Angel_Sanchez)\
**Post date:** [January 18, 2022, 10:20am UTC](https://discuss.konghq.com/t/configure-kong-to-work-with-websockets-inside-my-aws-eks-k8s/9644/3 "2022-01-18T10:20:57Z")

</div>

Thanks @traines  
I moved prod to my new k8s cluster with kong and websockets works OK!
