From eafa9a6b6f9ddd1e7f6b2a2044b2684c6a3e8d3b Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Fri, 13 Oct 2023 17:39:04 -0400 Subject: [PATCH] Add homarr --- homarr/homarr-deployment.yaml | 32 ++++++++++++++++++++++++++++++++ homarr/homarr-pvc-config.yaml | 12 ++++++++++++ homarr/homarr-pvc-icons.yaml | 12 ++++++++++++ homarr/homarr-service.yaml | 12 ++++++++++++ 4 files changed, 68 insertions(+) create mode 100644 homarr/homarr-deployment.yaml create mode 100644 homarr/homarr-pvc-config.yaml create mode 100644 homarr/homarr-pvc-icons.yaml create mode 100644 homarr/homarr-service.yaml diff --git a/homarr/homarr-deployment.yaml b/homarr/homarr-deployment.yaml new file mode 100644 index 0000000..e708db3 --- /dev/null +++ b/homarr/homarr-deployment.yaml @@ -0,0 +1,32 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: homarr + namespace: homarr-ns +spec: + replicas: 1 + selector: + matchLabels: + app: homarr + template: + metadata: + labels: + app: homarr + spec: + containers: + - name: homarr + image: ghcr.io/ajnar/homarr:latest + ports: + - containerPort: 7575 + volumeMounts: + - name: homarr-config + mountPath: /app/data/configs + - name: homarr-icons + mountPath: /app/public/icons + volumes: + - name: homarr-config + persistentVolumeClaim: + claimName: homarr-config-pvc + - name: homarr-icons + persistentVolumeClaim: + claimName: homarr-icons-pvc diff --git a/homarr/homarr-pvc-config.yaml b/homarr/homarr-pvc-config.yaml new file mode 100644 index 0000000..9690f57 --- /dev/null +++ b/homarr/homarr-pvc-config.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: homarr-config-pvc + namespace: homarr-ns +spec: + storageClassName: longhorn + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 512Mi diff --git a/homarr/homarr-pvc-icons.yaml b/homarr/homarr-pvc-icons.yaml new file mode 100644 index 0000000..f6cb304 --- /dev/null +++ b/homarr/homarr-pvc-icons.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: homarr-icons-pvc + namespace: homarr-ns +spec: + storageClassName: longhorn + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi diff --git a/homarr/homarr-service.yaml b/homarr/homarr-service.yaml new file mode 100644 index 0000000..86b3b74 --- /dev/null +++ b/homarr/homarr-service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: homarr-service + namespace: homarr-ns +spec: + type: LoadBalancer + ports: + - port: 80 + targetPort: 7575 + selector: + app: homarr