From ae9005b3125ee6608b8425121744a8b43306d7b6 Mon Sep 17 00:00:00 2001 From: trivernis Date: Fri, 23 Feb 2024 11:06:02 +0100 Subject: [PATCH] Add iulse --- apps/iulse/app.yaml | 8 ++++++++ apps/iulse/app/namespace.yaml | 6 ++++++ apps/iulse/app/route.yaml | 25 +++++++++++++++++++++++++ cluster/apps.yaml | 17 +++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 apps/iulse/app.yaml create mode 100644 apps/iulse/app/namespace.yaml create mode 100644 apps/iulse/app/route.yaml diff --git a/apps/iulse/app.yaml b/apps/iulse/app.yaml new file mode 100644 index 0000000..fa30d03 --- /dev/null +++ b/apps/iulse/app.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: kube-system +metadata: + name: iulse +resources: + - app/namespace.yaml + - app/route.yaml diff --git a/apps/iulse/app/namespace.yaml b/apps/iulse/app/namespace.yaml new file mode 100644 index 0000000..6880809 --- /dev/null +++ b/apps/iulse/app/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: iulse + labels: + name: iulse diff --git a/apps/iulse/app/route.yaml b/apps/iulse/app/route.yaml new file mode 100644 index 0000000..f686754 --- /dev/null +++ b/apps/iulse/app/route.yaml @@ -0,0 +1,25 @@ +apiVersion: traefik.containo.us/v1alpha1 +kind: Middleware +metadata: + name: iulse-redirect + namespace: iulse +spec: + redirectRegex: + regex: ^http(s)?://(www\.)?iulse\.com/(.*) + replacement: https://trivernis.net/${3} +--- +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: web + namespace: iulse +spec: + entryPoints: + - web + routes: + - match: Host(`iulse.com`, `www.iulse.com`) + kind: Rule + middlewares: + - name: iulse-redirect + - name: strict-security-headers + namespace: default diff --git a/cluster/apps.yaml b/cluster/apps.yaml index 61645d3..feea972 100644 --- a/cluster/apps.yaml +++ b/cluster/apps.yaml @@ -371,3 +371,20 @@ spec: prune: true wait: true timeout: 5m0s +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: apps-iulse + namespace: flux-system +spec: + dependsOn: + - name: repos + interval: 5m + sourceRef: + kind: GitRepository + name: flux-system + path: ./apps/iulse + prune: true + wait: true + timeout: 5m0s