bookshelf.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: bookshelf
  6. namespace: plex
  7. spec:
  8. strategy:
  9. type: Recreate
  10. selector:
  11. matchLabels:
  12. app: bookshelf
  13. replicas: 1
  14. template:
  15. metadata:
  16. labels:
  17. app: bookshelf
  18. annotations:
  19. backup.velero.io/backup-volumes-excludes: plex,seedbox
  20. spec:
  21. containers:
  22. - name: bookshelf
  23. image: ghcr.io/pennydreadful/bookshelf:hardcover
  24. imagePullPolicy: Always
  25. ports:
  26. - containerPort: 8787
  27. name: http-web-svc
  28. env:
  29. - name: TZ
  30. value: America/New_York
  31. - name: PUID
  32. value: "1000"
  33. - name: PGID
  34. value: "1000"
  35. volumeMounts:
  36. - mountPath: /audiobooks
  37. name: media
  38. subPath: Audiobooks
  39. - mountPath: /scratch
  40. name: seedbox
  41. subPath: audiobooks
  42. - mountPath: /config
  43. name: config
  44. resources:
  45. requests:
  46. memory: "0"
  47. limits:
  48. memory: "2Gi"
  49. volumes:
  50. - name: media
  51. persistentVolumeClaim:
  52. claimName: plex-pvc
  53. - name: config
  54. persistentVolumeClaim:
  55. claimName: bookshelf-pvc
  56. - name: seedbox
  57. nfs:
  58. server: 172.16.69.253
  59. path: /seedbox/torrents
  60. ---
  61. apiVersion: v1
  62. kind: Service
  63. metadata:
  64. name: bookshelf-service
  65. namespace: plex
  66. spec:
  67. selector:
  68. app: bookshelf
  69. type: ClusterIP
  70. ports:
  71. - name: bookshelf-web-port
  72. protocol: TCP
  73. port: 8787
  74. targetPort: http-web-svc
  75. ---
  76. apiVersion: networking.k8s.io/v1
  77. kind: Ingress
  78. metadata:
  79. name: bookshelf
  80. namespace: plex
  81. annotations:
  82. traefik.ingress.kubernetes.io/router.entrypoints: websecure
  83. traefik.ingress.kubernetes.io/router.middlewares: kube-system-lanonly@kubernetescrd
  84. spec:
  85. rules:
  86. - host: bookshelf.lan.jibby.org
  87. http:
  88. paths:
  89. - path: /
  90. pathType: Prefix
  91. backend:
  92. service:
  93. name: bookshelf-service
  94. port:
  95. number: 8787