From 4896336043db9158e9a563dccd23bca50957da28 Mon Sep 17 00:00:00 2001 From: Sense T Date: Sat, 17 Feb 2024 22:58:54 +0800 Subject: [PATCH] transmission --- resilio/deployment.yaml | 29 ------------------- resilio/kustomization.yaml | 7 ----- resilio/service.yaml | 19 ------------- transmission/deployment.yaml | 50 +++++++++++++++++++++++++++++++++ transmission/kustomization.yaml | 21 ++++++++++++++ transmission/namespace.yaml | 4 +++ transmission/services.yaml | 21 ++++++++++++++ 7 files changed, 96 insertions(+), 55 deletions(-) delete mode 100644 resilio/deployment.yaml delete mode 100644 resilio/kustomization.yaml delete mode 100644 resilio/service.yaml create mode 100644 transmission/deployment.yaml create mode 100644 transmission/kustomization.yaml create mode 100644 transmission/namespace.yaml create mode 100644 transmission/services.yaml diff --git a/resilio/deployment.yaml b/resilio/deployment.yaml deleted file mode 100644 index 1803276..0000000 --- a/resilio/deployment.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/resilio/kustomization.yaml b/resilio/kustomization.yaml deleted file mode 100644 index 3ead957..0000000 --- a/resilio/kustomization.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/resilio/service.yaml b/resilio/service.yaml deleted file mode 100644 index a9cd413..0000000 --- a/resilio/service.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/transmission/deployment.yaml b/transmission/deployment.yaml new file mode 100644 index 0000000..5250edc --- /dev/null +++ b/transmission/deployment.yaml @@ -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: + 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 diff --git a/transmission/kustomization.yaml b/transmission/kustomization.yaml new file mode 100644 index 0000000..a3769ff --- /dev/null +++ b/transmission/kustomization.yaml @@ -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: + newName: linuxserver/transmission + newTag: 4.0.5 \ No newline at end of file diff --git a/transmission/namespace.yaml b/transmission/namespace.yaml new file mode 100644 index 0000000..d8a215a --- /dev/null +++ b/transmission/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: transmission \ No newline at end of file diff --git a/transmission/services.yaml b/transmission/services.yaml new file mode 100644 index 0000000..6c638f6 --- /dev/null +++ b/transmission/services.yaml @@ -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