⬆️ 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,31 +27,28 @@ spec:
uninstall: uninstall:
keepHistory: false keepHistory: false
values: values:
defaultPodOptions:
securityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
controllers:
main:
type: statefulset
containers:
main:
image: image:
repository: ghcr.io/auricom/pyload-ng repository: ghcr.io/auricom/pyload-ng
tag: 0.5.0-b3.dev29@sha256:fd1343113033b3f8dcbbdad70a2bdbac20c40852a37f6925b9506a1f8d09e1c2 tag: 0.5.0-b3.dev29@sha256:fd1343113033b3f8dcbbdad70a2bdbac20c40852a37f6925b9506a1f8d09e1c2
env: env:
TZ: "${TIMEZONE}" TZ: "${TIMEZONE}"
service: resources:
main: requests:
ports: cpu: 15m
http: memory: 105Mi
port: 8000 limits:
ingress: memory: 1Gi
main:
enabled: true
ingressClassName: "nginx"
annotations:
auth.home.arpa/enabled: "true"
hajimari.io/icon: mdi:download
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *host
probes: probes:
liveness: &probe liveness: &probe
custom: true custom: true
@@ -66,25 +63,40 @@ spec:
timeoutSeconds: 10 timeoutSeconds: 10
readiness: *probe readiness: *probe
startup: *probe startup: *probe
podSecurityContext: statefulset:
runAsUser: 568 volumeClaimTemplates:
runAsGroup: 568 - name: config
fsGroup: 568 accessMode: ReadWriteOnce
fsGroupChangePolicy: "OnRootMismatch" size: 1Gi
storageClass: rook-ceph-block
globalMounts:
- path: /config
service:
main:
ports:
http:
port: 8000
ingress:
main:
enabled: true
className: "nginx"
annotations:
auth.home.arpa/enabled: "true"
hajimari.io/icon: mdi:download
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
service:
name: main
port: http
tls:
- hosts:
- *host
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