cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit 43595b8e5db63ddc779c0b3f1fd052b7e3d980b8
parent 72d6147cb0b176377bf8e6d5dac7a766fb56c203
Author: MTRNord <mtrnord1@gmail.com>
Date:   Thu, 16 Mar 2023 23:08:15 +0100

Add receiver

Diffstat:
Mclusters/production/flux-system/kustomization.yaml | 6++++--
Aclusters/production/flux-system/update-receiver.yaml | 18++++++++++++++++++
Aclusters/production/flux-system/webhook-ingress.yaml | 21+++++++++++++++++++++
3 files changed, 43 insertions(+), 2 deletions(-)

diff --git a/clusters/production/flux-system/kustomization.yaml b/clusters/production/flux-system/kustomization.yaml @@ -1,5 +1,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- gotk-components.yaml -- gotk-sync.yaml + - gotk-components.yaml + - gotk-sync.yaml + - webhook-ingress.yaml + - update-receiver.yaml diff --git a/clusters/production/flux-system/update-receiver.yaml b/clusters/production/flux-system/update-receiver.yaml @@ -0,0 +1,17 @@ +--- +apiVersion: notification.toolkit.fluxcd.io/v1beta2 +kind: Receiver +metadata: + name: gitea-receiver + namespace: flux-system +spec: + type: github + events: + - "ping" + - "push" + secretRef: + name: receiver-token + resources: + - apiVersion: source.toolkit.fluxcd.io/v1beta2 + kind: GitRepository + name: flux-system +\ No newline at end of file diff --git a/clusters/production/flux-system/webhook-ingress.yaml b/clusters/production/flux-system/webhook-ingress.yaml @@ -0,0 +1,21 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: webhook-ingress + labels: + name: webhook-ingress + annotations: + cert-manager.io/cluster-issuer: letsencrypt-dns +spec: + rules: + - host: webhook.kubernetes.midnightthoughts.space + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: webhook-receiver + port: + number: 80