8gears / n8n-helm-chart

A Kubernetes Helm chart for n8n a Workflow Automation Tool. Easily automate tasks across different services.
https://artifacthub.io/packages/helm/open-8gears/n8n
Apache License 2.0
200 stars 102 forks source link

I have isolated the webhooks - production is working / test isnt / Chart: 0.23.1 #86

Open egandro opened 6 months ago

egandro commented 6 months ago

I am using separated workers

scaling:
  enabled: true
  worker:
    count: 2
    concurrency: 2
   webhook:
     enabled: true
     count: 1

**Not working***

curl https://n8n.mycluster/webhook-test/test1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /webhook-test/test1</pre>
</body>
</html>

**Working***

curl https://n8n.mycluster/webhook/test1
{"message":"Workflow executed successfully"}

Also working

egandro commented 6 months ago

I am not sure if this is somehow related to my fix here: https://github.com/8gears/n8n-helm-chart/pull/59

maozza commented 5 months ago

unlike /webhook/ the /webhook-test/ route should be pointed to the main n8n pods and not to the webhook pods. editing the ingress and removing the following fix the issue

      - backend:
          service:
            name: n8n-webhooks
            port:
              number: 80
        path: /webhook-test/
        pathType: Prefix