Add flood.
This commit is contained in:
parent
be902bacc0
commit
179207fe49
4 changed files with 119 additions and 0 deletions
80
kubernetes/apps/qbittorrent/flood/app/helmrelease.yaml
Normal file
80
kubernetes/apps/qbittorrent/flood/app/helmrelease.yaml
Normal file
|
@ -0,0 +1,80 @@
|
||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: &app flood
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: app-template
|
||||||
|
version: 3.3.2
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: bjw-s
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
upgrade:
|
||||||
|
cleanupOnFail: true
|
||||||
|
remediation:
|
||||||
|
strategy: rollback
|
||||||
|
retries: 3
|
||||||
|
dependsOn:
|
||||||
|
- name: qbittorrent
|
||||||
|
namespace: qbittorrent
|
||||||
|
values:
|
||||||
|
defaultPodOptions:
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 568
|
||||||
|
runAsGroup: 568
|
||||||
|
fsGroup: 568
|
||||||
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
|
controllers:
|
||||||
|
flood:
|
||||||
|
annotations:
|
||||||
|
reloader.stakater.com/auto: "true"
|
||||||
|
containers:
|
||||||
|
app:
|
||||||
|
image:
|
||||||
|
repository: jesec/flood
|
||||||
|
tag: master@sha256:3d20df051209bff2905dec4e8328c1c464d5375e730ef7d81ca21422e2ccf06a
|
||||||
|
env:
|
||||||
|
FLOOD_OPTION_RUNDIR: /data
|
||||||
|
FLOOD_OPTION_AUTH: none
|
||||||
|
FLOOD_OPTION_QBURL: http://qbittorrent.qbittorrent.svc.cluster.local
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 250Mi
|
||||||
|
cpu: 15m
|
||||||
|
limits:
|
||||||
|
memory: 512Mi
|
||||||
|
service:
|
||||||
|
app:
|
||||||
|
controller: *app
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 80
|
||||||
|
ingress:
|
||||||
|
app:
|
||||||
|
enabled: true
|
||||||
|
className: "internal-nginx"
|
||||||
|
hosts:
|
||||||
|
- host: &host "flood.jahanson.tech"
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
service:
|
||||||
|
identifier: app
|
||||||
|
port: http
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- *host
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: *app
|
||||||
|
globalMounts:
|
||||||
|
- path: /data
|
9
kubernetes/apps/qbittorrent/flood/app/kustomization.yaml
Normal file
9
kubernetes/apps/qbittorrent/flood/app/kustomization.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: default
|
||||||
|
resources:
|
||||||
|
- ./helmrelease.yaml
|
||||||
|
- ../../../../templates/gatus/internal
|
||||||
|
- ../../../../templates/volsync
|
29
kubernetes/apps/qbittorrent/flood/ks.yaml
Normal file
29
kubernetes/apps/qbittorrent/flood/ks.yaml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: &app flood
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
targetNamespace: qbittorrent
|
||||||
|
commonMetadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: *app
|
||||||
|
dependsOn:
|
||||||
|
- name: external-secrets-stores
|
||||||
|
- name: qbittorrent
|
||||||
|
- name: volsync
|
||||||
|
path: ./kubernetes/apps/qbittorrent/flood/app
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: homelab
|
||||||
|
wait: false
|
||||||
|
interval: 30m
|
||||||
|
retryInterval: 1m
|
||||||
|
timeout: 5m
|
||||||
|
postBuild:
|
||||||
|
substitute:
|
||||||
|
APP: *app
|
||||||
|
VOLSYNC_CAPACITY: 2Gi
|
|
@ -7,4 +7,5 @@ resources:
|
||||||
- ./namespace.yaml
|
- ./namespace.yaml
|
||||||
# Flux-Kustomizations
|
# Flux-Kustomizations
|
||||||
- ./cross-seed/ks.yaml
|
- ./cross-seed/ks.yaml
|
||||||
|
- ./flood/ks.yaml
|
||||||
- ./qbittorrent/ks.yaml
|
- ./qbittorrent/ks.yaml
|
||||||
|
|
Loading…
Reference in a new issue