From e317c77ed94b3253286036be5f273f236fb93706 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Tue, 12 Dec 2023 10:12:07 +0100 Subject: [PATCH] use homarr --- apps/homarr/ingress.yaml | 15 +++++ apps/homarr/kustomization.yaml | 17 ++++++ apps/homarr/namespace.yaml | 4 ++ apps/homarr/pvc.yaml | 0 apps/homarr/values.yaml | 58 +++++++++++++++++++ infrastructure/renovate/cronjob.yaml | 4 +- infrastructure/renovate/kustomization.yaml | 14 +++-- kluster-deployments/homarr/application.yaml | 18 ++++++ kluster-deployments/homarr/kustomization.yaml | 4 ++ kluster-deployments/kustomization.yaml | 1 + 10 files changed, 128 insertions(+), 7 deletions(-) create mode 100644 apps/homarr/ingress.yaml create mode 100644 apps/homarr/kustomization.yaml create mode 100644 apps/homarr/namespace.yaml create mode 100644 apps/homarr/pvc.yaml create mode 100644 apps/homarr/values.yaml create mode 100644 kluster-deployments/homarr/application.yaml create mode 100644 kluster-deployments/homarr/kustomization.yaml diff --git a/apps/homarr/ingress.yaml b/apps/homarr/ingress.yaml new file mode 100644 index 0000000..121e77e --- /dev/null +++ b/apps/homarr/ingress.yaml @@ -0,0 +1,15 @@ +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: homarr-ingress +spec: + entryPoints: + - websecure + routes: + - match: Host(`start.kluster.moll.re`) + kind: Rule + services: + - name: homarr + port: 7575 + tls: + certResolver: default-tls diff --git a/apps/homarr/kustomization.yaml b/apps/homarr/kustomization.yaml new file mode 100644 index 0000000..e9c6654 --- /dev/null +++ b/apps/homarr/kustomization.yaml @@ -0,0 +1,17 @@ + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: homarr + +resources: + - namespace.yaml + - pvc.yaml + - ingress.yaml + +helmCharts: + - name: homarr + releaseName: homarr + repo: https://oben01.github.io/charts/ + version: 1.0.1 + valuesFile: values.yaml diff --git a/apps/homarr/namespace.yaml b/apps/homarr/namespace.yaml new file mode 100644 index 0000000..0a074bd --- /dev/null +++ b/apps/homarr/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: placeholder diff --git a/apps/homarr/pvc.yaml b/apps/homarr/pvc.yaml new file mode 100644 index 0000000..e69de29 diff --git a/apps/homarr/values.yaml b/apps/homarr/values.yaml new file mode 100644 index 0000000..4a04bbe --- /dev/null +++ b/apps/homarr/values.yaml @@ -0,0 +1,58 @@ +# -- Default values for homarr +# -- Declare variables to be passed into your templates. + +# -- Number of replicas +replicaCount: 1 +env: + # -- Your local time zone + TZ: "Europe/Berlin" + # -- Colors and preferences, possible values dark / light + DEFAULT_COLOR_SCHEME: "dark" + +# -- Service configuration +service: + # -- Service type + type: ClusterIP + # -- Service port + port: 7575 + # -- Service target port + targetPort: 7575 + +# -- Ingress configuration +ingress: + enabled: false + +persistence: + - name: homarr-config + # -- Enable homarr-config persistent storage + enabled: true + # -- homarr-config storage class name + storageClassName: "nfs-client" + # -- homarr-config access mode + accessMode: "ReadWriteOnce" + # -- homarr-config storage size + size: "50Mi" + # -- homarr-config mount path inside the pod + mountPath: "/app/data/configs" + - name: homarr-database + # -- Enable homarr-database persistent storage + enabled: true + # -- homarr-database storage class name + storageClassName: "nfs-client" + # -- homarr-database access mode + accessMode: "ReadWriteOnce" + # -- homarr-database storage size + size: "50Mi" + # -- homarr-database mount path inside the pod + mountPath: "/app/database" + - name: homarr-icons + # -- Enable homarr-icons persistent storage + enabled: true + # -- homarr-icons storage class name + storageClassName: "nfs-client" + # -- homarr-icons access mode + accessMode: "ReadWriteOnce" + # -- homarr-icons storage size + size: "50Mi" + # -- homarr-icons mount path inside the pod + mountPath: "/app/public/icons" diff --git a/infrastructure/renovate/cronjob.yaml b/infrastructure/renovate/cronjob.yaml index 413622f..103c7e7 100644 --- a/infrastructure/renovate/cronjob.yaml +++ b/infrastructure/renovate/cronjob.yaml @@ -11,9 +11,7 @@ spec: spec: containers: - name: renovate - # Update this to the latest available and then enable Renovate on - # the manifest - image: renovate/renovate:35 + image: renovate/renovate args: - user/repo # Environment Variables diff --git a/infrastructure/renovate/kustomization.yaml b/infrastructure/renovate/kustomization.yaml index 5db485e..ac3d10a 100644 --- a/infrastructure/renovate/kustomization.yaml +++ b/infrastructure/renovate/kustomization.yaml @@ -1,8 +1,14 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization -resources: -- namespace.yaml -- env.sealedsecret.yaml -- cronjob.yaml namespace: renovate + +resources: + - namespace.yaml + - env.sealedsecret.yaml + - cronjob.yaml + +images: + - name: renovate/renovate + newName: renovate/renovate + newTag: "35" diff --git a/kluster-deployments/homarr/application.yaml b/kluster-deployments/homarr/application.yaml new file mode 100644 index 0000000..cc699af --- /dev/null +++ b/kluster-deployments/homarr/application.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: homarr-application + namespace: argocd +spec: + project: apps + source: + repoURL: ssh://git@git.kluster.moll.re:2222/remoll/k3s-infra.git + targetRevision: main + path: apps/homarr + destination: + server: https://kubernetes.default.svc + namespace: homarr + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/kluster-deployments/homarr/kustomization.yaml b/kluster-deployments/homarr/kustomization.yaml new file mode 100644 index 0000000..0b082ba --- /dev/null +++ b/kluster-deployments/homarr/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- application.yaml \ No newline at end of file diff --git a/kluster-deployments/kustomization.yaml b/kluster-deployments/kustomization.yaml index 0589e61..71f01ef 100644 --- a/kluster-deployments/kustomization.yaml +++ b/kluster-deployments/kustomization.yaml @@ -18,6 +18,7 @@ resources: - traefik/ # simple apps + - homarr/ - whoami/ - journal/ - immich/