⬆️ flood app-template v2

This commit is contained in:
auricom
2023-10-31 21:46:51 +01:00
parent 8031cbeeaf
commit 5db6f9e20f
4 changed files with 43 additions and 51 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,19 +27,43 @@ spec:
uninstall: uninstall:
keepHistory: false keepHistory: false
values: values:
controller: controllers:
annotations: main:
reloader.stakater.com/auto: "true" type: statefulset
image: annotations:
repository: jesec/flood reloader.stakater.com/auto: "true"
tag: master containers:
env: main:
FLOOD_OPTION_RUNDIR: /data image:
FLOOD_OPTION_AUTH: "none" repository: jesec/flood
FLOOD_OPTION_QBURL: "http://qbittorrent.default.svc.cluster.local.:8080" tag: master@sha256:f4c7ea00f92904db57df1ff1095f17f58389d6b95fdd733aa8533c65deb9343d
envFrom: env:
- secretRef: FLOOD_OPTION_RUNDIR: /data
name: flood-secret FLOOD_OPTION_AUTH: "none"
FLOOD_OPTION_QBURL: "http://qbittorrent.default.svc.cluster.local.:8080"
envFrom:
- secretRef:
name: flood-secret
resources:
requests:
memory: 250Mi
cpu: 15m
limits:
memory: 512Mi
pod:
securityContext:
runAsUser: 1001
runAsGroup: 1001
fsGroup: 1001
fsGroupChangePolicy: "OnRootMismatch"
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 50Gi
storageClass: rook-ceph-block
globalMounts:
- path: /data
service: service:
main: main:
ports: ports:
@@ -48,7 +72,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
@@ -56,23 +80,9 @@ 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
podSecurityContext:
runAsUser: 1001
runAsGroup: 1001
fsGroup: 1001
fsGroupChangePolicy: "OnRootMismatch"
persistence:
data:
enabled: true
existingClaim: flood-config
mountPath: /data
resources:
requests:
memory: 250Mi
cpu: 15m
limits:
memory: 512Mi

View File

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

View File

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

View File

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