transmission

This commit is contained in:
Sense T 2024-02-17 22:58:54 +08:00
parent c6f94435c5
commit 4896336043
7 changed files with 96 additions and 55 deletions

View File

@ -1,29 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: resilio-sync
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: resilio-sync
template:
metadata:
labels:
app: resilio-sync
spec:
volumes:
- name: data
hostPath:
path: /data/resilio-sync
containers:
- name: resilio-sync
image: resilio/sync:2.7.3
resources:
limits:
cpu: 500m
memory: 512Mi
volumeMounts:
- name: data
mountPath: /mnt/sync

View File

@ -1,7 +0,0 @@
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yaml

View File

@ -1,19 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: resilio-sync
spec:
type: LoadBalancer
ipFamilyPolicy: PreferDualStack
ipFamilies:
- IPv4
- IPv6
selector:
app: resilio-sync
ports:
- name: web
port: 8888
targetPort: 8888
- name: sync
port: 55555
targetPort: 55555

View File

@ -0,0 +1,50 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: transmission
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: transmission
template:
metadata:
labels:
app: transmission
spec:
volumes:
- name: config
hostPath:
path: /data/transmission/config
- name: downloads
hostPath:
path: /data/transmission/downloads
- name: watch
hostPath:
path: /data/transmission/watch
containers:
- name: transmission
image: <Image>
envFrom:
- configMapRef:
name: transmission
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 9091
name: web
- containerPort: 51413
name: s
- containerPort: 51413
protocol: UDP
name: s-u
volumeMounts:
- mountPath: /config
name: config
- mountPath: /downloads
name: downloads
- mountPath: /watch
name: watch

View File

@ -0,0 +1,21 @@
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- deployment.yaml
- services.yaml
namespace: transmission
configMapGenerator:
- name: transmission
files:
- config/PASS
- config/TZ
- config/USER
- config/PGID
- config/PUID
images:
- name: <Image>
newName: linuxserver/transmission
newTag: 4.0.5

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: transmission

View File

@ -0,0 +1,21 @@
apiVersion: v1
kind: Service
metadata:
name: transmission
spec:
type: LoadBalancer
ipFamilyPolicy: PreferDualStack
ipFamilies:
- IPv4
- IPv6
selector:
app: transmission
ports:
- port: 9091
targetPort: web
protocol: TCP
name: web
- port: 51413
targetPort: s
protocol: TCP
name: torrent