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