From dad3e2c2016cfff8f60aef24decea5e4c762349a Mon Sep 17 00:00:00 2001 From: Joshua Gort Date: Tue, 10 Oct 2023 09:58:34 +0200 Subject: [PATCH] Added business tour site --- apps/_clusters/release/kustomization.yaml | 1 + apps/bt-website/image.yaml | 23 ++++++++++++++++ apps/bt-website/kustomization.yaml | 5 ++++ apps/bt-website/release.yaml | 32 +++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 apps/bt-website/image.yaml create mode 100644 apps/bt-website/kustomization.yaml create mode 100644 apps/bt-website/release.yaml diff --git a/apps/_clusters/release/kustomization.yaml b/apps/_clusters/release/kustomization.yaml index e2967e02..a70952b9 100644 --- a/apps/_clusters/release/kustomization.yaml +++ b/apps/_clusters/release/kustomization.yaml @@ -5,6 +5,7 @@ resources: # - ../../areafiftylan # - ../../areafiftylan-legacy - ../../adminer + - ../../bt-website - ../../chipcie-legacy - ../../chipcie-nwerc-2022 - ../../chipcie-nwerc-2023 diff --git a/apps/bt-website/image.yaml b/apps/bt-website/image.yaml new file mode 100644 index 00000000..d45c88ad --- /dev/null +++ b/apps/bt-website/image.yaml @@ -0,0 +1,23 @@ +apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImageRepository +metadata: + name: bt-website + namespace: flux-system +spec: + image: ghcr.io/wisvch/btwebsite2024 + interval: 15m0s +--- +apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImagePolicy +metadata: + name: bt-website + namespace: flux-system +spec: + imageRepositoryRef: + name: bt-website + filterTags: + pattern: "^(?P.*)-[a-fA-F0-9]+" + extract: "$ts" + policy: + numerical: + order: asc \ No newline at end of file diff --git a/apps/bt-website/kustomization.yaml b/apps/bt-website/kustomization.yaml new file mode 100644 index 00000000..97b04951 --- /dev/null +++ b/apps/bt-website/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - image.yaml + - release.yaml diff --git a/apps/bt-website/release.yaml b/apps/bt-website/release.yaml new file mode 100644 index 00000000..a11abd17 --- /dev/null +++ b/apps/bt-website/release.yaml @@ -0,0 +1,32 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: bt-website + namespace: default +spec: + interval: 15m + chart: + spec: + chart: ./static-site + version: "0.1.x" + interval: 15m + reconcileStrategy: Revision + sourceRef: + kind: GitRepository + name: wisvch + namespace: flux-system + values: + fullnameOverride: bt-website + domains: + - businesstour.ch.tudelft.nl + - businesstour.wisv.ch + replicaCount: 1 + containerPort: 8080 + service: + type: ClusterIP + port: 80 + image: + repository: ghcr.io/wisvch/btwebsite2024 + tag: 20231009-d5d0bcb # {"$imagepolicy": "flux-system:bt-website:tag"} + pullPolicy: IfNotPresent + pullSecrets: {}