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