From 77884b291db5270b9b31a33a6a9a7491b6684e62 Mon Sep 17 00:00:00 2001 From: Marcin-Ramotowski Date: Fri, 1 Aug 2025 22:58:02 +0200 Subject: [PATCH] Configured separate ingress for webhook --- argo-workflows/argo-ingress.yaml | 20 ++++++++++++++++++++ argo-workflows/service.yaml | 16 ++++++++++++++++ argo-workflows/source.yaml | 2 +- argo-workflows/webhook-ingress.yaml | 20 ++++++++++++++++++++ 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 argo-workflows/argo-ingress.yaml create mode 100644 argo-workflows/service.yaml create mode 100644 argo-workflows/webhook-ingress.yaml diff --git a/argo-workflows/argo-ingress.yaml b/argo-workflows/argo-ingress.yaml new file mode 100644 index 0000000..25c29c2 --- /dev/null +++ b/argo-workflows/argo-ingress.yaml @@ -0,0 +1,20 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: argo-ingress + namespace: argo + annotations: + nginx.ingress.kubernetes.io/ssl-redirect: "false" +spec: + ingressClassName: nginx + rules: + - host: argo.marcin00.pl + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: argo-server + port: + number: 2746 diff --git a/argo-workflows/service.yaml b/argo-workflows/service.yaml new file mode 100644 index 0000000..fd7200f --- /dev/null +++ b/argo-workflows/service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + name: webhook-eventsource-svc + namespace: argo-events +spec: + type: ClusterIP + ports: + - name: default + port: 12000 + protocol: TCP + targetPort: 12000 + selector: + controller: eventsource-controller + eventsource-name: webhook + owner-name: webhook \ No newline at end of file diff --git a/argo-workflows/source.yaml b/argo-workflows/source.yaml index f55576c..e6f0dbd 100644 --- a/argo-workflows/source.yaml +++ b/argo-workflows/source.yaml @@ -10,6 +10,6 @@ spec: targetPort: 12000 webhook: test-hook: - endpoint: /example + endpoint: /gitea-hook method: POST port: "12000" \ No newline at end of file diff --git a/argo-workflows/webhook-ingress.yaml b/argo-workflows/webhook-ingress.yaml new file mode 100644 index 0000000..64950bc --- /dev/null +++ b/argo-workflows/webhook-ingress.yaml @@ -0,0 +1,20 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: argo-ingress + namespace: argo-events + annotations: + nginx.ingress.kubernetes.io/ssl-redirect: "false" +spec: + ingressClassName: nginx + rules: + - host: argo-hook.marcin00.pl + http: + paths: + - path: /gitea-hook + pathType: Prefix + backend: + service: + name: webhook-eventsource-svc + port: + number: 12000