fix: use official homepage k8s deployment with subPath mounts

This commit is contained in:
2026-03-16 23:29:27 +01:00
parent d1dcfa9994
commit cb6b2c1442
2 changed files with 21 additions and 22 deletions
+20 -21
View File
@@ -5,8 +5,6 @@ metadata:
namespace: homepage namespace: homepage
spec: spec:
replicas: 1 replicas: 1
strategy:
type: Recreate
selector: selector:
matchLabels: matchLabels:
app: homepage app: homepage
@@ -20,31 +18,33 @@ spec:
- name: homepage - name: homepage
image: ghcr.io/gethomepage/homepage:v1.11.0 image: ghcr.io/gethomepage/homepage:v1.11.0
ports: ports:
- containerPort: 3000 - name: http
containerPort: 3000
protocol: TCP
env: env:
- name: HOMEPAGE_ALLOWED_HOSTS - name: HOMEPAGE_ALLOWED_HOSTS
value: "homepage.net-scope.org" value: "homepage.net-scope.org"
volumeMounts: volumeMounts:
- name: app-data - mountPath: /app/config/settings.yaml
mountPath: /app/config name: homepage-config
- name: config-files
mountPath: /app/config/settings.yaml
subPath: settings.yaml subPath: settings.yaml
- name: config-files - mountPath: /app/config/services.yaml
mountPath: /app/config/services.yaml name: homepage-config
subPath: services.yaml subPath: services.yaml
- name: config-files - mountPath: /app/config/bookmarks.yaml
mountPath: /app/config/bookmarks.yaml name: homepage-config
subPath: bookmarks.yaml subPath: bookmarks.yaml
- name: config-files - mountPath: /app/config/widgets.yaml
mountPath: /app/config/widgets.yaml name: homepage-config
subPath: widgets.yaml subPath: widgets.yaml
- name: config-files - mountPath: /app/config/docker.yaml
mountPath: /app/config/docker.yaml name: homepage-config
subPath: docker.yaml subPath: docker.yaml
- name: config-files - mountPath: /app/config/kubernetes.yaml
mountPath: /app/config/kubernetes.yaml name: homepage-config
subPath: kubernetes.yaml subPath: kubernetes.yaml
- mountPath: /app/config/logs
name: logs
resources: resources:
requests: requests:
memory: "128Mi" memory: "128Mi"
@@ -53,9 +53,8 @@ spec:
memory: "256Mi" memory: "256Mi"
cpu: "200m" cpu: "200m"
volumes: volumes:
- name: app-data - name: homepage-config
persistentVolumeClaim:
claimName: homepage-config
- name: config-files
configMap: configMap:
name: homepage-config name: homepage-config
- name: logs
emptyDir: {}
+1 -1
View File
@@ -3,7 +3,7 @@ kind: Kustomization
resources: resources:
- namespace.yaml - namespace.yaml
- rbac.yaml - rbac.yaml
- pvc.yaml # - pvc.yaml
- deployment.yaml - deployment.yaml
- service.yaml - service.yaml
- configmap.yaml - configmap.yaml