github.com/argoproj/argo-events@v1.9.1/examples/event-sources/webhook.yaml (about)

     1  apiVersion: argoproj.io/v1alpha1
     2  kind: EventSource
     3  metadata:
     4    name: webhook
     5  spec:
     6    service:
     7      ports:
     8        - port: 12000
     9          targetPort: 12000
    10    webhook:
    11      # event-source can run multiple HTTP servers. Simply define a unique port to start a new HTTP server
    12      example:
    13        # port to run HTTP server on
    14        port: "12000"
    15        # endpoint to listen to
    16        endpoint: /example
    17        # HTTP request method to allow. In this case, only POST requests are accepted
    18        method: POST
    19  
    20  #    example-foo:
    21  #      port: "12000"
    22  #      endpoint: /example2
    23  #      method: POST
    24  
    25  # Uncomment to use secure webhook
    26  #    example-secure:
    27  #      port: "13000"
    28  #      endpoint: "/secure"
    29  #      method: "POST"
    30  #      # k8s secret that contains the cert
    31  #      serverCertSecret:
    32  #        name: my-secret
    33  #        key: cert-key
    34  #      # k8s secret that contains the private key
    35  #      serverKeySecret:
    36  #        name: my-secret
    37  #        key: pk-key