From 39c4c78d3b3086ac9389988e2c8048bfd7ac8831 Mon Sep 17 00:00:00 2001 From: brandon Date: Sun, 28 Mar 2021 21:16:31 -0400 Subject: [PATCH] webhook --- argo-events/webhook.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 argo-events/webhook.yaml diff --git a/argo-events/webhook.yaml b/argo-events/webhook.yaml new file mode 100644 index 0000000..54730f2 --- /dev/null +++ b/argo-events/webhook.yaml @@ -0,0 +1,37 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + name: webhook +spec: + service: + ports: + - port: 12000 + targetPort: 12000 + webhook: + # event-source can run multiple HTTP servers. Simply define a unique port to start a new HTTP server + example: + # port to run HTTP server on + port: "12000" + # endpoint to listen to + endpoint: /example + # HTTP request method to allow. In this case, only POST requests are accepted + method: POST + +# example-foo: +# port: "12000" +# endpoint: /example2 +# method: POST + +# Uncomment to use secure webhook +# example-secure: +# port: "13000" +# endpoint: "/secure" +# method: "POST" +# # k8s secret that contains the cert +# serverCertSecret: +# name: my-secret +# key: cert-key +# # k8s secret that contains the private key +# serverKeySecret: +# name: my-secret +# key: pk-key \ No newline at end of file