fixed deployment for config

This commit is contained in:
Alexis Bruneteau 2025-09-04 17:59:05 +02:00
parent cfaa0097ae
commit a58bd673e8

View File

@ -24,6 +24,21 @@ spec:
enableServiceLinks: true
securityContext:
fsGroup: 1000
initContainers:
- name: copy-config
image: busybox:1.36
command: ['sh', '-c']
args:
- |
cp /config-source/* /app/config/ 2>/dev/null || true
chmod -R 644 /app/config/*.yaml
chmod -R 644 /app/config/*.js
chmod -R 644 /app/config/*.css
volumeMounts:
- mountPath: /config-source
name: homepage-config
- mountPath: /app/config
name: config-writable
containers:
- name: homepage
image: "ghcr.io/gethomepage/homepage:latest"
@ -36,35 +51,13 @@ spec:
containerPort: 3000
protocol: TCP
volumeMounts:
- mountPath: /app/config/custom.js
name: homepage-config
subPath: custom.js
- mountPath: /app/config/custom.css
name: homepage-config
subPath: custom.css
- mountPath: /app/config/bookmarks.yaml
name: homepage-config
subPath: bookmarks.yaml
- mountPath: /app/config/docker.yaml
name: homepage-config
subPath: docker.yaml
- mountPath: /app/config/kubernetes.yaml
name: homepage-config
subPath: kubernetes.yaml
- mountPath: /app/config/services.yaml
name: homepage-config
subPath: services.yaml
- mountPath: /app/config/settings.yaml
name: homepage-config
subPath: settings.yaml
- mountPath: /app/config/widgets.yaml
name: homepage-config
subPath: widgets.yaml
- mountPath: /app/config/logs
name: logs
- mountPath: /app/config
name: config-writable
volumes:
- name: homepage-config
configMap:
name: homepage-config
- name: logs
emptyDir: {}
- name: config-writable
emptyDir: {}