You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
941 B
37 lines
941 B
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
|