syncthing.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. namespace: plex
  6. name: syncthing
  7. spec:
  8. strategy:
  9. type: Recreate
  10. replicas: 1
  11. selector:
  12. matchLabels:
  13. app: syncthing
  14. template:
  15. metadata:
  16. labels:
  17. app: syncthing
  18. annotations:
  19. backup.velero.io/backup-volumes-excludes: data
  20. spec:
  21. affinity:
  22. nodeAffinity:
  23. requiredDuringSchedulingIgnoredDuringExecution:
  24. nodeSelectorTerms:
  25. - matchExpressions:
  26. - key: cluster-ingress
  27. operator: In
  28. values:
  29. - "true"
  30. hostNetwork: true
  31. containers:
  32. - name: syncthing
  33. image: linuxserver/syncthing:1.27.2
  34. imagePullPolicy: Always
  35. ports:
  36. - containerPort: 8384
  37. name: http-web-svc
  38. - containerPort: 22000
  39. name: transfer-svc
  40. env:
  41. - name: PUID
  42. value: "1000"
  43. - name: PGID
  44. value: "1000"
  45. - name: TZ
  46. value: "America/New_York"
  47. volumeMounts:
  48. - mountPath: "/data"
  49. name: "data"
  50. - mountPath: "/config"
  51. name: "config"
  52. restartPolicy: Always
  53. volumes:
  54. - name: data
  55. persistentVolumeClaim:
  56. claimName: data-pvc
  57. - name: config
  58. persistentVolumeClaim:
  59. claimName: syncthing-pvc