From bc991e96e7f550e042dfd08d32bd8ec76841c145 Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Tue, 7 Feb 2023 01:10:05 +0100 Subject: [PATCH] feat(jellyfin): Add services for web and transfer This patch adds two services, one for web, which can be exposed by an ingress, and one of type LoadBalancer that is exposed directly, to cut down on transfer overhead using a relay or alike. --- apps/k8s01/syncthing/syncthing.yaml | 36 ++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/apps/k8s01/syncthing/syncthing.yaml b/apps/k8s01/syncthing/syncthing.yaml index 8febbdfb1..7a7ef8a26 100644 --- a/apps/k8s01/syncthing/syncthing.yaml +++ b/apps/k8s01/syncthing/syncthing.yaml @@ -60,4 +60,38 @@ spec: accessModes: [ "ReadWriteOnce" ] resources: requests: - storage: 70Gi \ No newline at end of file + storage: 70Gi +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/name: syncthing + name: syncthing + namespace: syncthing +spec: + ports: + - name: http + port: 80 + protocol: TCP + targetPort: web + selector: + app.kubernetes.io/name: syncthing + type: ClusterIP +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/name: syncthing + name: syncthing + namespace: syncthing +spec: + ports: + - name: transfer-tcp + port: 22000 + protocol: TCP + targetPort: transfer-tcp + selector: + app.kubernetes.io/name: syncthing + type: LoadBalancer \ No newline at end of file -- GitLab