pulsarr.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: pulsarr
  6. namespace: plex
  7. spec:
  8. strategy:
  9. type: Recreate
  10. selector:
  11. matchLabels:
  12. app: pulsarr
  13. replicas: 1
  14. template:
  15. metadata:
  16. labels:
  17. app: pulsarr
  18. spec:
  19. containers:
  20. - name: pulsarr
  21. image: lakker/pulsarr:latest
  22. imagePullPolicy: Always
  23. ports:
  24. - containerPort: 3003
  25. name: http-web-svc
  26. volumeMounts:
  27. - mountPath: "/app/data"
  28. name: data
  29. - mountPath: /app/.env
  30. subPath: .env
  31. name: env
  32. resources:
  33. requests:
  34. memory: "0"
  35. limits:
  36. memory: "1Gi"
  37. volumes:
  38. - name: env
  39. configMap:
  40. name: pulsarr-env
  41. - name: data
  42. persistentVolumeClaim:
  43. claimName: pulsarr-pvc
  44. ---
  45. apiVersion: v1
  46. kind: ConfigMap
  47. metadata:
  48. name: pulsarr-env
  49. namespace: plex
  50. data:
  51. .env: |
  52. baseUrl=https://pulsarr.lan.jibby.org
  53. port=3003
  54. TZ=America/New_York
  55. logLevel=info
  56. NODE_ARGS=--log-both
  57. cookieSecured=true
  58. ---
  59. apiVersion: v1
  60. kind: Service
  61. metadata:
  62. name: pulsarr-service
  63. namespace: plex
  64. spec:
  65. selector:
  66. app: pulsarr
  67. type: ClusterIP
  68. ports:
  69. - name: pulsarr-web-port
  70. protocol: TCP
  71. port: 3003
  72. targetPort: http-web-svc
  73. ---
  74. apiVersion: networking.k8s.io/v1
  75. kind: Ingress
  76. metadata:
  77. name: pulsarr
  78. namespace: plex
  79. annotations:
  80. traefik.ingress.kubernetes.io/router.entrypoints: websecure
  81. traefik.ingress.kubernetes.io/router.middlewares: kube-system-lanonly@kubernetescrd
  82. spec:
  83. rules:
  84. - host: pulsarr.lan.jibby.org
  85. http:
  86. paths:
  87. - path: /
  88. pathType: Prefix
  89. backend:
  90. service:
  91. name: pulsarr-service
  92. port:
  93. number: 3003