mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
⬆️ lychee app-template v2
This commit is contained in:
@@ -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,16 +29,22 @@ 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
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
envFrom: &envFrom
|
|
||||||
- secretRef:
|
|
||||||
name: &secret lychee-secret
|
|
||||||
controller:
|
|
||||||
annotations:
|
annotations:
|
||||||
reloader.stakater.com/auto: "true"
|
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:
|
image:
|
||||||
repository: lycheeorg/lychee-laravel
|
repository: lycheeorg/lychee-laravel
|
||||||
tag: v4.13.0
|
tag: v4.13.0
|
||||||
@@ -48,9 +54,19 @@ spec:
|
|||||||
DB_CONNECTION: pgsql
|
DB_CONNECTION: pgsql
|
||||||
REDIS_HOST: lychee-redis.default.svc.cluster.local.
|
REDIS_HOST: lychee-redis.default.svc.cluster.local.
|
||||||
REDIS_PORT: 6379
|
REDIS_PORT: 6379
|
||||||
envFrom:
|
envFrom: *envFrom
|
||||||
- secretRef:
|
resources:
|
||||||
name: lychee-secret
|
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
|
|
||||||
|
@@ -8,4 +8,3 @@ resources:
|
|||||||
- ./gatus.yaml
|
- ./gatus.yaml
|
||||||
- ./helmrelease.yaml
|
- ./helmrelease.yaml
|
||||||
- ./volsync.yaml
|
- ./volsync.yaml
|
||||||
- ./volume.yaml
|
|
||||||
|
@@ -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:
|
||||||
|
@@ -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
|
|
Reference in New Issue
Block a user