mirror of
https://github.com/zoriya/snow.git
synced 2026-08-15 18:44:14 +00:00
Add flood
This commit is contained in:
@@ -42,17 +42,33 @@ 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
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: flood
|
||||
spec:
|
||||
ingressClassName: cilium
|
||||
rules:
|
||||
- host: flood.sdg.moe
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: flood
|
||||
port:
|
||||
number: 80
|
||||
path: /
|
||||
pathType: Prefix
|
||||
@@ -9,6 +9,7 @@ labels:
|
||||
resources:
|
||||
- ./deployment.yaml
|
||||
- ./service.yaml
|
||||
- ./ingress.yaml
|
||||
- ./pv-downloads.yaml
|
||||
- ./pv-medias.yaml
|
||||
- ./pv-config.yaml
|
||||
|
||||
@@ -8,3 +8,14 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: 512Mi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: flood-config
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 512Mi
|
||||
|
||||
@@ -18,3 +18,14 @@ spec:
|
||||
port: 51413
|
||||
protocol: UDP
|
||||
targetPort: 51413
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: flood
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 3000
|
||||
|
||||
Reference in New Issue
Block a user