⬆️ lychee app-template v2

This commit is contained in:
auricom
2023-10-29 12:29:22 +01:00
parent a2134737a8
commit c3c0eca54d
4 changed files with 45 additions and 54 deletions

View File

@@ -10,7 +10,7 @@ spec:
chart:
spec:
chart: app-template
version: 1.5.1
version: 2.0.3
sourceRef:
kind: HelmRepository
name: bjw-s
@@ -29,28 +29,44 @@ spec:
dependsOn:
- name: lychee-redis
values:
initContainers:
01-init-db:
image: ghcr.io/auricom/postgres-init:15.4
imagePullPolicy: IfNotPresent
envFrom: &envFrom
- secretRef:
name: &secret lychee-secret
controller:
annotations:
reloader.stakater.com/auto: "true"
image:
repository: lycheeorg/lychee-laravel
tag: v4.13.0
env:
TIMEZONE: ${TIMEZONE}
APP_NAME: Lychee
DB_CONNECTION: pgsql
REDIS_HOST: lychee-redis.default.svc.cluster.local.
REDIS_PORT: 6379
envFrom:
- secretRef:
name: lychee-secret
controllers:
main:
annotations:
reloader.stakater.com/auto: "true"
type: statefulset
initContainers:
01-init-db:
image:
repository: ghcr.io/auricom/postgres-init
tag: 15.4@sha256:83e1abf06be5741bdfb8cb53fc03a1ade6e6b5ec7b92a8aac0c69ba5dc7e51f0
pullPolicy: IfNotPresent
envFrom: &envFrom
- secretRef:
name: lychee-secret
containers:
main:
image:
repository: lycheeorg/lychee-laravel
tag: v4.13.0
env:
TIMEZONE: ${TIMEZONE}
APP_NAME: Lychee
DB_CONNECTION: pgsql
REDIS_HOST: lychee-redis.default.svc.cluster.local.
REDIS_PORT: 6379
envFrom: *envFrom
resources:
requests:
cpu: 100m
memory: 256Mi
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 50Gi
storageClass: rook-ceph-block
globalMounts:
- path: /uploads
service:
main:
ports:
@@ -59,16 +75,16 @@ spec:
ingress:
main:
enabled: true
ingressClassName: "nginx"
className: "nginx"
annotations:
auth.home.arpa/enabled: "true"
external-dns.home.arpa/enabled: "true"
hajimari.io/icon: mdi:camera
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
pathType: Prefix
service:
name: main
tls:
- hosts:
- *host
@@ -78,13 +94,6 @@ spec:
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/photo
mountPath: /mnt/storage/photo
readOnly: true
files:
enabled: true
mountPath: /uploads
existingClaim: lychee-files
resources:
requests:
cpu: 15m
memory: 256Mi
globalMounts:
- path: /mnt/storage/photo

View File

@@ -8,4 +8,3 @@ resources:
- ./gatus.yaml
- ./helmrelease.yaml
- ./volsync.yaml
- ./volume.yaml

View File

@@ -30,7 +30,7 @@ metadata:
name: lychee
namespace: default
spec:
sourcePVC: lychee-files
sourcePVC: config-lychee-0
trigger:
schedule: "0 7 * * *"
restic:

View File

@@ -1,17 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: lychee-files
namespace: default
labels:
app.kubernetes.io/name: &name lychee
app.kubernetes.io/instance: *name
snapshot.home.arpa/enabled: "true"
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
storageClassName: rook-ceph-block