Files
homelab/clusters/homelab/homepage/deployment.yaml
T

62 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: homepage
namespace: homepage
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: homepage
template:
metadata:
labels:
app: homepage
spec:
serviceAccountName: homepage
containers:
- name: homepage
image: ghcr.io/gethomepage/homepage:v1.11.0
ports:
- containerPort: 3000
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
subPath: settings.yaml
- name: config-files
mountPath: /app/config/services.yaml
subPath: services.yaml
- name: config-files
mountPath: /app/config/bookmarks.yaml
subPath: bookmarks.yaml
- name: config-files
mountPath: /app/config/widgets.yaml
subPath: widgets.yaml
- name: config-files
mountPath: /app/config/docker.yaml
subPath: docker.yaml
- name: config-files
mountPath: /app/config/kubernetes.yaml
subPath: kubernetes.yaml
resources:
requests:
memory: "128Mi"
cpu: "10m"
limits:
memory: "256Mi"
cpu: "200m"
volumes:
- name: app-data
persistentVolumeClaim:
claimName: homepage-config
- name: config-files
configMap:
name: homepage-config