github.com/argoproj/argo-events@v1.9.1/examples/tutorials/06-trigger-conditions/webhook-event-source.yaml (about)

     1  apiVersion: argoproj.io/v1alpha1
     2  kind: EventSource
     3  metadata:
     4    name: webhook-event-source
     5  spec:
     6    type: "webhook"
     7    service:
     8      ports:
     9        - port: 12000
    10          targetPort: 12000
    11    webhook:
    12      # EventSource can run multiple HTTP servers. Simply define a unique port to start a new HTTP server
    13      example:
    14        # port to run HTTP server on
    15        port: "12000"
    16        # endpoint to listen to
    17        endpoint: "/example"
    18        # HTTP request method to allow. In this case, only POST requests are accepted
    19        method: "POST"