k8s/apps/fireflyiii/deployment.yaml

50 lines
1.1 KiB
YAML
Raw Permalink Normal View History

apiVersion: apps/v1
kind: Deployment
2026-03-17 08:11:22 +00:00
metadata:
name: firefly
namespace: firefly
spec:
replicas: 1
selector:
matchLabels:
app: firefly
template:
2026-03-17 08:11:22 +00:00
metadata:
labels:
app: firefly
spec:
initContainers:
- name: init-storage
image: busybox
command:
- sh
- -c
- |
mkdir -p /var/www/html/storage && chown -R 33:33 /var/www/html/storage
volumeMounts:
- name: firefly-data
mountPath: /var/www/html/storage
containers:
- name: firefly
image: fireflyiii/core:latest
ports:
- containerPort: 8080
envFrom:
- configMapRef:
name: firefly-config
- secretRef:
2026-04-07 07:08:16 +00:00
name: firefly-secrets
volumeMounts:
- name: firefly-data
mountPath: /var/www/html/storage
volumes:
- name: firefly-data
persistentVolumeClaim:
claimName: firefly-data
2026-04-08 07:01:20 +00:00
#envFrom:
# - configMapRef:
# name: firefly-config
# - secretRef:
# name: firefly-secrets