⬆️ pyload app-template v2

This commit is contained in:
auricom
2023-11-03 16:25:05 +01:00
parent bee84809c1
commit c18f981fb3
4 changed files with 52 additions and 58 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
@@ -27,11 +27,50 @@ spec:
uninstall: uninstall:
keepHistory: false keepHistory: false
values: values:
image: defaultPodOptions:
repository: ghcr.io/auricom/pyload-ng securityContext:
tag: 0.5.0-b3.dev29@sha256:fd1343113033b3f8dcbbdad70a2bdbac20c40852a37f6925b9506a1f8d09e1c2 runAsUser: 568
env: runAsGroup: 568
TZ: "${TIMEZONE}" fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
controllers:
main:
type: statefulset
containers:
main:
image:
repository: ghcr.io/auricom/pyload-ng
tag: 0.5.0-b3.dev29@sha256:fd1343113033b3f8dcbbdad70a2bdbac20c40852a37f6925b9506a1f8d09e1c2
env:
TZ: "${TIMEZONE}"
resources:
requests:
cpu: 15m
memory: 105Mi
limits:
memory: 1Gi
probes:
liveness: &probe
custom: true
enabled: true
spec:
failureThreshold: 5
httpGet:
path: /login
port: 8000
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 10
readiness: *probe
startup: *probe
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 1Gi
storageClass: rook-ceph-block
globalMounts:
- path: /config
service: service:
main: main:
ports: ports:
@@ -40,7 +79,7 @@ spec:
ingress: ingress:
main: main:
enabled: true enabled: true
ingressClassName: "nginx" className: "nginx"
annotations: annotations:
auth.home.arpa/enabled: "true" auth.home.arpa/enabled: "true"
hajimari.io/icon: mdi:download hajimari.io/icon: mdi:download
@@ -48,43 +87,16 @@ spec:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}" - host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix service:
name: main
port: http
tls: tls:
- hosts: - hosts:
- *host - *host
probes:
liveness: &probe
custom: true
enabled: true
spec:
failureThreshold: 5
httpGet:
path: /login
port: 8000
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 10
readiness: *probe
startup: *probe
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: "OnRootMismatch"
persistence: persistence:
config:
enabled: true
existingClaim: pyload-config
mountPath: /config
downloads: downloads:
enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/downloads path: /mnt/storage/downloads
mountPath: /mnt/storage/downloads globalMounts:
resources: - path: /mnt/storage/downloads
requests:
cpu: 15m
memory: 105Mi
limits:
memory: 1Gi

View File

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

View File

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

View File

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