Not able to connect to action server in Kubernetes cluster

Hi,

I am trying to deploy rasa chatbot with Kubernetes cluster on aws. i see there is an issue that it is not able to connect to action server

deployment.yaml

apiVersion: apps/v1 kind: Deployment metadata: name: app-rasa-deployment labels: app: app-rasa spec: replicas: 2 selector: matchLabels: app: app-rasa template: metadata: labels: app: app-rasa spec: containers: - name: app-rasa-opensource image: 377.dkr.ecr.ap-south-1.amazonaws.com/oxyjon_bot:latest ports: - containerPort: 5005 - name: action-server image: 377.dkr.ecr.ap-south-1.amazonaws.com/oxyjon_action_rasa:latest ports: - containerPort: 5055


kind: Service apiVersion: v1 metadata: name: app-rasa-service spec: type: LoadBalancer selector: app: app-rasa ports: - protocol: TCP port: 80 targetPort: 5005

endpoints.yml

action_endpoint: url: “http://action_server:5055/webhook”

error raise ClientConnectorError(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host action_server:5055 ssl:default [Name or service not known]

Please use markdown for your log output.

Your action server pod must not be named action_server. You should use the standard helm chart which will automatically set the hostname for the action server.

Hi, I am using helm chart but getting below error for rasa oss pod and it is not executing custom action

Error in logs Failed to execute custom action 'validate_phone_form' because no endpoint is configured to run this custom action.

I dont see any error on action server pod.

2022-07-01 10:51:24 INFO     rasa_sdk.endpoint  - Starting action endpoint server...
2022-07-01 10:51:24 INFO     rasa_sdk.executor  - Registered function for 'action_hello_world'.
2022-07-01 10:51:24 INFO     rasa_sdk.executor  - Registered function for 'action_start_conversation'.
2022-07-01 10:51:24 INFO     rasa_sdk.executor  - Registered function for 'action_say_hello'.
2022-07-01 10:51:24 INFO     rasa_sdk.executor  - Registered function for 'validate_fasting_sugar_form'.
2022-07-01 10:51:24 INFO     rasa_sdk.executor  - Registered function for 'validate_phone_form'.
2022-07-01 10:51:24 INFO     rasa_sdk.endpoint  - Action endpoint is up and running on http://0.0.0.0:5055

I also tried with endpoint entry in rasa-valies.yaml for rasa-action-server but it didn’t help, getting same error

  endpoints:
    ## Fetch the model from your own HTTP server
    ## See: https://rasa.com/docs/rasa/model-storage#load-model-from-server
    action_endpoint:
      url: "http:/localhost:5055/webhook"