From cb6b2c144289632e4d45bf18e7126be019172b32 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 16 Mar 2026 23:29:27 +0100 Subject: [PATCH] fix: use official homepage k8s deployment with subPath mounts --- clusters/homelab/homepage/deployment.yaml | 41 ++++++++++---------- clusters/homelab/homepage/kustomization.yaml | 2 +- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/clusters/homelab/homepage/deployment.yaml b/clusters/homelab/homepage/deployment.yaml index cd5b11e..4ece9f6 100644 --- a/clusters/homelab/homepage/deployment.yaml +++ b/clusters/homelab/homepage/deployment.yaml @@ -5,8 +5,6 @@ metadata: namespace: homepage spec: replicas: 1 - strategy: - type: Recreate selector: matchLabels: app: homepage @@ -20,31 +18,33 @@ spec: - name: homepage image: ghcr.io/gethomepage/homepage:v1.11.0 ports: - - containerPort: 3000 + - name: http + containerPort: 3000 + protocol: TCP env: - name: HOMEPAGE_ALLOWED_HOSTS value: "homepage.net-scope.org" volumeMounts: - - name: app-data - mountPath: /app/config - - name: config-files - mountPath: /app/config/settings.yaml + - mountPath: /app/config/settings.yaml + name: homepage-config subPath: settings.yaml - - name: config-files - mountPath: /app/config/services.yaml + - mountPath: /app/config/services.yaml + name: homepage-config subPath: services.yaml - - name: config-files - mountPath: /app/config/bookmarks.yaml + - mountPath: /app/config/bookmarks.yaml + name: homepage-config subPath: bookmarks.yaml - - name: config-files - mountPath: /app/config/widgets.yaml + - mountPath: /app/config/widgets.yaml + name: homepage-config subPath: widgets.yaml - - name: config-files - mountPath: /app/config/docker.yaml + - mountPath: /app/config/docker.yaml + name: homepage-config subPath: docker.yaml - - name: config-files - mountPath: /app/config/kubernetes.yaml + - mountPath: /app/config/kubernetes.yaml + name: homepage-config subPath: kubernetes.yaml + - mountPath: /app/config/logs + name: logs resources: requests: memory: "128Mi" @@ -53,9 +53,8 @@ spec: memory: "256Mi" cpu: "200m" volumes: - - name: app-data - persistentVolumeClaim: - claimName: homepage-config - - name: config-files + - name: homepage-config configMap: name: homepage-config + - name: logs + emptyDir: {} diff --git a/clusters/homelab/homepage/kustomization.yaml b/clusters/homelab/homepage/kustomization.yaml index 27e6df8..82d738f 100644 --- a/clusters/homelab/homepage/kustomization.yaml +++ b/clusters/homelab/homepage/kustomization.yaml @@ -3,7 +3,7 @@ kind: Kustomization resources: - namespace.yaml - rbac.yaml - - pvc.yaml +# - pvc.yaml - deployment.yaml - service.yaml - configmap.yaml