about summary refs log tree commit diff
path: root/bundles/copyparty/files/kube.yaml
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2026-04-22 14:32:23 +0900
committerRobert Günzler <r@gnzler.io>2026-04-22 14:38:23 +0900
commitada70ea42c39b579b8aad248068b95c956a79a1c (patch)
treec0ec92bd447fba698fbcbf027d9ef8dbb642a509 /bundles/copyparty/files/kube.yaml
parent82bf37339cd01640a9c66702a4275de6180851cb (diff)
deploy copyparty
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bundles/copyparty/files/kube.yaml')
-rw-r--r--bundles/copyparty/files/kube.yaml64
1 files changed, 64 insertions, 0 deletions
diff --git a/bundles/copyparty/files/kube.yaml b/bundles/copyparty/files/kube.yaml
new file mode 100644
index 0000000..1ea4adf
--- /dev/null
+++ b/bundles/copyparty/files/kube.yaml
@@ -0,0 +1,64 @@
+apiVersion: v1
+kind: Pod
+metadata:
+  name: copyparty
+  labels:
+    traefik.enable: true
+    traefik.http.routers.copyparty.tls: true
+    traefik.http.routers.copyparty.tls.certresolver: le
+    traefik.http.routers.copyparty.entrypoints: http,https
+    traefik.http.routers.copyparty.rule: Host(`cp.gzr.im`)
+    traefik.http.routers.copyparty.service: copyparty
+    traefik.http.routers.copyparty.middlewares: tls-redirect@file,authelia@file
+    traefik.http.services.copyparty.loadbalancer.server.port: 3923
+spec:
+  dnsPolicy: Default
+  containers:
+    - name: copyparty
+      image: ghcr.io/9001/copyparty-${edition}:${version}
+      env:
+        - name: LD_PRELOAD
+          value: /usr/lib/libmimalloc-secure.so.2
+        - name: PYTHONUNBUFFERED
+          value: 1
+        - name: PRTY_NO_CFSSL
+          value: 1
+        - name: PRTY_NO_PARAMIKO
+          value: 1
+        - name: PRTY_NO_PARTFTPY
+          value: 1
+        - name: PRTY_NO_PYFTPD
+          value: 1
+      volumeMounts:
+        - name: config
+          mountPath: /cfg
+        - name: webroot
+          mountPath: /w
+        # mount host paths we want to expose
+        - name: var-www
+          mountPath: /var/www
+      ports:
+        - containerPort: 3923
+          protocol: TCP
+      # livenessProbe:
+      #   exec:
+      #     command: ["wget", "--spider", "-q", "127.0.0.1:3923/?reset=/._"]
+      #     initialDelaySeconds: 15s
+      resources:
+        limits:
+          cpu: 100m
+          memory: 128Mi
+  volumes:
+    - name: config
+      hostPath:
+        path: /var/lib/copyparty/cfg
+        type: DirectoryOrCreate
+    - name: webroot
+      hostPath:
+        path: /var/www/copyparty
+        type: DirectoryOrCreate
+    # other host paths
+    - name: var-www
+      hostPath:
+        path: /var/www
+        type: Directory