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

View File

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

View File

@@ -30,7 +30,7 @@ metadata:
name: lychee name: lychee
namespace: default namespace: default
spec: spec:
sourcePVC: lychee-files sourcePVC: config-lychee-0
trigger: trigger:
schedule: "0 7 * * *" schedule: "0 7 * * *"
restic: 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