lidarr.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: lidarr
  6. namespace: plex
  7. spec:
  8. strategy:
  9. type: Recreate
  10. selector:
  11. matchLabels:
  12. app: lidarr
  13. replicas: 1
  14. template:
  15. metadata:
  16. labels:
  17. app: lidarr
  18. annotations:
  19. backup.velero.io/backup-volumes-excludes: plex,seedbox
  20. spec:
  21. containers:
  22. - name: lidarr
  23. image: lscr.io/linuxserver/lidarr:latest
  24. ports:
  25. - containerPort: 8686
  26. name: http-web-svc
  27. env:
  28. - name: TZ
  29. value: America/New_York
  30. - name: PUID
  31. value: "1000"
  32. - name: PGID
  33. value: "1000"
  34. volumeMounts:
  35. - mountPath: "/plex"
  36. name: plex
  37. - mountPath: "/seedbox"
  38. name: seedbox
  39. - mountPath: "/config"
  40. name: config
  41. resources:
  42. requests:
  43. memory: "0"
  44. limits:
  45. memory: "1Gi"
  46. volumes:
  47. - name: plex
  48. persistentVolumeClaim:
  49. claimName: plex-pvc
  50. - name: seedbox
  51. persistentVolumeClaim:
  52. claimName: seedbox-pvc
  53. - name: config
  54. persistentVolumeClaim:
  55. claimName: lidarr-pvc
  56. ---
  57. apiVersion: v1
  58. kind: Service
  59. metadata:
  60. name: lidarr-service
  61. namespace: plex
  62. spec:
  63. selector:
  64. app: lidarr
  65. type: ClusterIP
  66. ports:
  67. - name: lidarr-web-port
  68. protocol: TCP
  69. port: 8686
  70. targetPort: http-web-svc
  71. ---
  72. apiVersion: traefik.containo.us/v1alpha1
  73. kind: IngressRoute
  74. metadata:
  75. name: lidarr
  76. namespace: plex
  77. spec:
  78. entryPoints:
  79. - websecure
  80. routes:
  81. - kind: Rule
  82. match: Host(`lidarr.lan.jibby.org`)
  83. services:
  84. - kind: Service
  85. name: lidarr-service
  86. port: 8686
  87. middlewares:
  88. - name: lanonly
  89. namespace: kube-system