Silpt flood to another file

This commit is contained in:
2025-08-02 14:04:10 +02:00
parent a367714b5a
commit a07a43b52a
4 changed files with 62 additions and 34 deletions
-23
View File
@@ -42,33 +42,10 @@ spec:
mountPath: /downloads
- name: medias
mountPath: /medias
- name: flood
image: jesec/flood:4.9.5
env:
- name: FLOOD_OPTION_AUTH
value: none
- name: FLOOD_OPTION_TRURL
value: "transmission.svc:9091"
- name: FLOOD_OPTION_TRUSER
value: ""
- name: FLOOD_OPTION_TRPASS
value: ""
volumeMounts:
- name: flood-config
mountPath: /data
- name: downloads
mountPath: /downloads
- name: medias
mountPath: /medias
volumes:
- name: config
persistentVolumeClaim:
claimName: config
- name: flood-config
persistentVolumeClaim:
claimName: flood-config
- name: medias
persistentVolumeClaim:
claimName: medias
+49
View File
@@ -0,0 +1,49 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: flood
label:
app.kubernetes.io/component: flood
spec:
template:
metadata:
label:
app.kubernetes.io/component: flood
spec:
securityContext:
fsGroup: 1001
runAsUser: 1001
runAsGroup: 1001
runAsNonRoot: true
fsGroupChangePolicy: OnRootMismatch
containers:
- name: flood
image: jesec/flood:4.9.5
env:
- name: FLOOD_OPTION_AUTH
value: none
- name: FLOOD_OPTION_TRURL
value: "transmission.svc:9091"
- name: FLOOD_OPTION_TRUSER
value: ""
- name: FLOOD_OPTION_TRPASS
value: ""
volumeMounts:
- name: flood-config
mountPath: /data
- name: downloads
mountPath: /downloads
readonly: true
- name: medias
mountPath: /medias
readonly: true
volumes:
- name: config
persistentVolumeClaim:
claimName: flood-config
- name: medias
persistentVolumeClaim:
claimName: medias
- name: downloads
persistentVolumeClaim:
claimName: downloads
+13
View File
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: flood
spec:
type: ClusterIP
ports:
- name: http
port: 80
targetPort: 3000
selector:
labels:
app.kubernetes.io/component: flood
-11
View File
@@ -18,14 +18,3 @@ spec:
port: 51413
protocol: UDP
targetPort: 51413
---
apiVersion: v1
kind: Service
metadata:
name: flood
spec:
type: ClusterIP
ports:
- name: http
port: 80
targetPort: 3000