From c71cee7bddf069745311dd876aa0f223e848d87e Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Thu, 24 Oct 2024 20:19:30 +0200 Subject: [PATCH] add librespeed --- .../base/librespeed-application.yaml | 20 ++++++++++++++++++ argocd-applications/kustomization.yaml | 1 + librespeed/base/librespeed-deployment.yaml | 21 +++++++++++++++++++ librespeed/base/librespeed-ingress.yaml | 12 +++++++++++ librespeed/base/librespeed-namespace.yaml | 4 ++++ librespeed/base/librespeed-svc.yaml | 11 ++++++++++ librespeed/kustomization.yaml | 10 +++++++++ 7 files changed, 79 insertions(+) create mode 100644 argocd-applications/base/librespeed-application.yaml create mode 100644 librespeed/base/librespeed-deployment.yaml create mode 100644 librespeed/base/librespeed-ingress.yaml create mode 100644 librespeed/base/librespeed-namespace.yaml create mode 100644 librespeed/base/librespeed-svc.yaml create mode 100644 librespeed/kustomization.yaml diff --git a/argocd-applications/base/librespeed-application.yaml b/argocd-applications/base/librespeed-application.yaml new file mode 100644 index 0000000..f86656a --- /dev/null +++ b/argocd-applications/base/librespeed-application.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: argo-app-librespeed + namespace: argocd +spec: + destination: + name: '' + namespace: default + server: https://kubernetes.default.svc + source: + path: librespeed + repoURL: https://git.mziesel.nl/mans/argocd-test + targetRevision: HEAD + sources: [] + project: default + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/argocd-applications/kustomization.yaml b/argocd-applications/kustomization.yaml index a1a0de8..4fe6303 100644 --- a/argocd-applications/kustomization.yaml +++ b/argocd-applications/kustomization.yaml @@ -12,3 +12,4 @@ resources: - ./base/cyberchef.yaml - ./base/go-redirect.yaml - ./base/redlib-application.yaml +- ./base/librespeed-application.yaml diff --git a/librespeed/base/librespeed-deployment.yaml b/librespeed/base/librespeed-deployment.yaml new file mode 100644 index 0000000..daa09c3 --- /dev/null +++ b/librespeed/base/librespeed-deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: librespeed + namespace: librespeed +spec: + replicas: 3 + selector: + matchLabels: + app: librespeed + template: + metadata: + labels: + app: librespeed + spec: + containers: + - image: ghcr.io/librespeed/speedtest:latest@sha256:054d3973bcec28abb528178ecc5decf6e202eb3be1b0d574ccf375a376480d98 + name: librespeed + ports: + - name: web + containerPort: 80 diff --git a/librespeed/base/librespeed-ingress.yaml b/librespeed/base/librespeed-ingress.yaml new file mode 100644 index 0000000..d8e521f --- /dev/null +++ b/librespeed/base/librespeed-ingress.yaml @@ -0,0 +1,12 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: librespeed-ingressroute +spec: + routes: + - match: Host(`speed.mziesel.nl`) + kind: Rule + services: + - name: librespeed + port: web + tls: {} diff --git a/librespeed/base/librespeed-namespace.yaml b/librespeed/base/librespeed-namespace.yaml new file mode 100644 index 0000000..50bc20f --- /dev/null +++ b/librespeed/base/librespeed-namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: librespeed diff --git a/librespeed/base/librespeed-svc.yaml b/librespeed/base/librespeed-svc.yaml new file mode 100644 index 0000000..04189e0 --- /dev/null +++ b/librespeed/base/librespeed-svc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: librespeed +spec: + ports: + - name: web + port: 80 + targetPort: web + selector: + app: librespeed diff --git a/librespeed/kustomization.yaml b/librespeed/kustomization.yaml new file mode 100644 index 0000000..7eea183 --- /dev/null +++ b/librespeed/kustomization.yaml @@ -0,0 +1,10 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: librespeed + +resources: + - ./base/librespeed-namespace.yaml + - ./base/librespeed-deployment.yaml + - ./base/librespeed-svc.yaml + - ./base/librespeed-ingress.yaml