diff --git a/homarr/homarr-deployment.yaml b/homarr/homarr-deployment.yaml new file mode 100644 index 0000000..1f76994 --- /dev/null +++ b/homarr/homarr-deployment.yaml @@ -0,0 +1,43 @@ +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/ajnart/homarr:latest + ports: + - containerPort: 7575 + env: + - name: EDIT_MODE_PASSWORD + valueFrom: + secretKeyRef: + name: homarr-edit-key + key: edit-key + volumeMounts: + - name: homarr-config + mountPath: /app/data/configs + - name: homarr-icons + mountPath: /app/public/icons + - name: homarr-data + mountPath: /data + volumes: + - name: homarr-config + persistentVolumeClaim: + claimName: homarr-config-pvc + - name: homarr-icons + persistentVolumeClaim: + claimName: homarr-icons-pvc + - name: homarr-data + persistentVolumeClaim: + claimName: homarr-data-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-data.yaml b/homarr/homarr-pvc-data.yaml new file mode 100644 index 0000000..e77d554 --- /dev/null +++ b/homarr/homarr-pvc-data.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: homarr-data-pvc + namespace: homarr-ns +spec: + storageClassName: longhorn + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi 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 diff --git a/homarr/sealed-secret.yaml b/homarr/sealed-secret.yaml new file mode 100644 index 0000000..27f3df2 --- /dev/null +++ b/homarr/sealed-secret.yaml @@ -0,0 +1,14 @@ +apiVersion: bitnami.com/v1alpha1 +kind: SealedSecret +metadata: + creationTimestamp: null + name: homarr-edit-key + namespace: homarr-ns +spec: + encryptedData: + edit-key: AgBnP6HGyQv63BuvrbO9JWdDu/aS7GadN+6dJ/4uBziMT6HxvBBbunrO5ZROHD1Hl9F3BSQs1GECkzYTQDVd5Hji93L39InCpo3+G0GGg0m6BH8j5WarheWS4837WynOUOfHncCCtXzG9iRqFZAUKE3xYtbNMULXXBiMyY625aonF3Agqz9MAtz4Dv56N5cPE4C4Ck0VPi4POQCP6RezHteCktlBBwpbPAem61mUUx+P+V7hEX3/TItl0j4HOvC6ttbHtVLPUwvHHdBcH/0stKhPben4Hnp7qLZe1A16+RCAbaAYF2TS9JbrQsCwtDq8mkQeAQg1sU0S1092b9OZKk9s1QpGGlKuH7G1iwQcaTpdVIj57QVIOPNoGWuuOiVzWe8hf+b1jITEJNT7VYWmBYcIZjLakYFr8zbkWPlvinkTv0GHo8uBOWsqLF+w3ekYk9HNSJ6dFEBpeMpvllXcbKnggb222otyqJ2Z9Kh2svIBqq2+0VulhFtEfjXFYLOMHqi+ZUz/MkPuREevDQXjwJTBoHD5OaB1OFRo6Kp1jyLogkTnUO/j2qv5DZDkofE0ha4PR9/9olqoYzTfs0IOa2+yUQZJ0OJ5dQbrnxNqbUWjCrVn6xVeCqKrZzsK+96wJVBgiPBzruO0y5ZYreNyW0GdBDS1ubvkkv8eMKbVOM+GTEtC1AburtCwuVYwOxgOJ31zudWmDzqEnrDK1Qp91eyzk4W2J+TRd52fxLQUukq9SA== + template: + metadata: + creationTimestamp: null + name: homarr-edit-key + namespace: homarr-ns