From 177f4f7f39e826d22b19d4c313807eeb1b525844 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 7 Oct 2023 17:26:07 +0200 Subject: [PATCH] Add flux webhook receiver --- apps/apps.yaml | 8 ++++++++ apps/flux/webhook-route.yaml | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 apps/flux/webhook-route.yaml diff --git a/apps/apps.yaml b/apps/apps.yaml index 2a9da66..6f8d762 100644 --- a/apps/apps.yaml +++ b/apps/apps.yaml @@ -2,6 +2,14 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: kube-system +metadata: + name: flux-webhook +resources: + - flux/webhook-route.yaml +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: kube-system metadata: name: traefik resources: diff --git a/apps/flux/webhook-route.yaml b/apps/flux/webhook-route.yaml new file mode 100644 index 0000000..c14f795 --- /dev/null +++ b/apps/flux/webhook-route.yaml @@ -0,0 +1,14 @@ +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: flux-webhook-route + namespace: flux-system +spec: + entryPoints: + - web + routes: + - match: Host(`fluxhook.trivernis.dev`) + kind: Rule + services: + - name: webhook-receiver + port: 80