argocd/apps/homepage/deployment.yaml

57 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2026-10-11 21:03:33 +02:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: homepage
spec:
replicas: 1
selector:
matchLabels:
app: homepage
template:
metadata:
labels:
app: homepage
spec:
2026-10-11 21:37:30 +02:00
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
# PAPERLESS_PORT as their own setting and crash.
enableServiceLinks: false
2026-10-11 21:03:33 +02:00
containers:
- name: homepage
image: ghcr.io/gethomepage/homepage:v2.5.0
ports:
- name: http
containerPort: 3000
env:
- name: HOMEPAGE_ALLOWED_HOSTS
value: home.un-oeil.fr
volumeMounts:
# Homepage writes to /app/config (logs, missing default files), so
# the directory is writable and only our files come from the
# ConfigMap.
- name: config-dir
mountPath: /app/config
- name: config
mountPath: /app/config/settings.yaml
subPath: settings.yaml
- name: config
mountPath: /app/config/services.yaml
subPath: services.yaml
- name: config
mountPath: /app/config/widgets.yaml
subPath: widgets.yaml
- name: config
mountPath: /app/config/bookmarks.yaml
subPath: bookmarks.yaml
resources:
requests:
cpu: 20m
memory: 64Mi
limits:
memory: 256Mi
volumes:
- name: config-dir
emptyDir: {}
- name: config
configMap:
name: homepage-config