# RASA deployment with Kubernets

**URL:** <https://forum.rasa.com/t/rasa-deployment-with-kubernets/37030>\
**Category:** Rasa Open Source\
**Created:** [November 16, 2020, 1:16am UTC](https://forum.rasa.com/t/rasa-deployment-with-kubernets/37030 "2020-11-16T01:16:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edukondalu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/edukondalu/32/11843_2.png) [@Edukondalu](https://forum.rasa.com/u/Edukondalu)\
**Post date:** [November 16, 2020, 1:16am UTC](https://forum.rasa.com/t/rasa-deployment-with-kubernets/37030/1 "2020-11-16T01:16:39Z")

</div>

Hi Team,

configurations of docker compose yml for action, server are working fine, where as same configurations in kubernetes have been through the error SSL for calling an actions.

```auto
2020-11-16 01:36:42 ERROR rasa.core.actions.action - Failed to run custom action 'greet_action'. Couldn't connect to the server at 'http://127.0.0.1:5055/webhook'. Is the server running? Error: Cannot connect to host 127.0.0.1:5055 ssl:default [Connection refused]
2020-11-16 01:36:42 ERROR rasa.core.processor - Encountered an exception while running action 'greet_action'. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.
2020-11-16 01:36:42 DEBUG rasa.core.processor - Failed to execute custom action.
Traceback (most recent call last):
  File "/build/lib/python3.6/site-packages/aiohttp/connector.py", line 936, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
  File "uvloop/loop.pyx", line 1974, in create_connection
  File "uvloop/loop.pyx", line 1951, in uvloop.loop.Loop.create_connection
ConnectionRefusedError: [Errno 111] Connection refused

```

The above exception was the direct cause of the following exception:

```auto
Traceback (most recent call last):
  File "/build/lib/python3.6/site-packages/rasa/core/actions/action.py", line 549, in run
    json=json_body, method="post", timeout=DEFAULT_REQUEST_TIMEOUT
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 129, in throw
    return self.gen.throw(type, value, traceback)
  File "/build/lib/python3.6/site-packages/rasa/utils/endpoints.py", line 146, in request
    **kwargs,
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 129, in throw
    return self.gen.throw(type, value, traceback)
  File "/build/lib/python3.6/site-packages/aiohttp/client.py", line 1012, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 129, in throw
    return self.gen.throw(type, value, traceback)
  File "/build/lib/python3.6/site-packages/aiohttp/client.py", line 483, in _request
    timeout=real_timeout
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 129, in throw
    return self.gen.throw(type, value, traceback)
  File "/build/lib/python3.6/site-packages/aiohttp/connector.py", line 523, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 129, in throw
    return self.gen.throw(type, value, traceback)
  File "/build/lib/python3.6/site-packages/aiohttp/connector.py", line 859, in _create_connection
    req, traces, timeout)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 129, in throw
    return self.gen.throw(type, value, traceback)
  File "/build/lib/python3.6/site-packages/aiohttp/connector.py", line 1004, in _create_direct_connection
    raise last_exc
  File "/build/lib/python3.6/site-packages/aiohttp/connector.py", line 986, in _create_direct_connection
    req=req, client_error=client_error)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 129, in throw
    return self.gen.throw(type, value, traceback)
  File "/build/lib/python3.6/site-packages/aiohttp/connector.py", line 943, in _wrap_create_connection
    raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 127.0.0.1:5055 ssl:default [Connection refused]

```

During handling of the above exception, another exception occurred:

```auto
Traceback (most recent call last):
  File "/build/lib/python3.6/site-packages/rasa/core/processor.py", line 597, in _run_action
    events = await action.run(output_channel, nlg, tracker, self.domain)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 129, in throw
    return self.gen.throw(type, value, traceback)
  File "/build/lib/python3.6/site-packages/rasa/core/actions/action.py", line 580, in run
    raise Exception("Failed to execute custom action.")
Exception: Failed to execute custom action.

```

please help me out, am struggling since a week. tried with change localhost IP and upgrade OS etc…

Regards, Edukondalu

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [November 17, 2020, 3:22am UTC](https://forum.rasa.com/t/rasa-deployment-with-kubernets/37030/2 "2020-11-17T03:22:37Z")

</div>

Hi Edukondalu,

Your action server is running on another host but the error message shows that Rasa is configured to look for it on your localhost: `http://127.0.0.1:5055/webhook`

I recommend you user our [helm based deployment for Kubernetes](https://rasa.com/docs/rasa-x/installation-and-setup/install/helm-chart).

Greg
