<p>I'm trying to route POST requests through a K8s Load Balancer to a Webhook in Argo Events. I can't find any clear documentation on this. I'm able to get the Webhook created and I can successfully communicate with it when I port forward the webhook-eventsource-svc. The Load Balancer is built fine and displays the external IP that I assign. However when I try to POST to the Load Balancer I just get a connection timed out error. I'm hoping I'm just configuring these manifests wrong.</p>
<p>Here is the manifest for both services.</p>
<pre><code>apiVersion: argoproj.io/v1alpha1
kind: EventSource
metadata:
  name: webhook
  namespace: argo-events
spec:
  service:
    ports:
    - port: 12000
      targetPort: 12000
  webhook: 
    example:
      endpoint: /deploy
      method: POST
      port: &quot;12000&quot;
---
apiVersion: v1
kind: Service
metadata:
  name: webhook-loadbalancer
  namespace: argo-events
  annotations:
    service.beta.kubernetes.io/azure-load-balancer-internal: &quot;true&quot;
    service.beta.kubernetes.io/azure-load-balancer-internal-subnet: DevelopSubnet
spec:
  type: LoadBalancer
  loadBalancerIP: 1XX.X.X.XXX
  ports:
  - protocol: TCP   
    port: 90
    targetPort: 12000
  selector:
    app: webhook-eventsource-svc
    controller: eventsource-controller
</code></pre>
<p>And here is how I am sending the request:</p>
<pre><code>curl -d '@params.json' -H &quot;Content-Type: application/json&quot; -X POST http://1XX.X.X.XXX:90/deploy
</code></pre>
<p>Any suggestions?</p>

<p>I'm trying to do something similar in AWS. I can get the sample webhook to work with port forwarding (<a href="https://argoproj.github.io/argo-events/quick_start/" rel="nofollow noreferrer">https://argoproj.github.io/argo-events/quick_start/</a>) But it won't work with regular K8s objects. In my case, an Ingress and a Service object. I can see my Service selector correctly pick the webhook sensor pod. Both Argo Events and Argo Workflow run in the same argo namespace. Once configured, access to the Ingress from Postman returns a 404. What I find confusing is that the actual Port the sensor pod exposes is 7777 in the sample, not 12000. So, I've tried a Service with Port 12000 / TargetPort 12000 or 7777. In either case, the POST returns 404.</p>
<p>What I can point out that's applicable in your case and mine is this (<a href="https://argoproj.github.io/argo-events/eventsources/services/" rel="nofollow noreferrer">https://argoproj.github.io/argo-events/eventsources/services/</a>) in the second paragraph it states that you must remove the service field from your EventSource object to refactor the sample from port forwarding. Hope it helps. I'm still trying to make this work.</p>
