lidarr.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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,scratch
  20. spec:
  21. containers:
  22. - name: lidarr
  23. image: lscr.io/linuxserver/lidarr:latest
  24. imagePullPolicy: Always
  25. ports:
  26. - containerPort: 8686
  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: "/plex"
  37. name: plex
  38. - mountPath: "/seedbox"
  39. name: seedbox
  40. - mountPath: "/config"
  41. name: config
  42. - mountPath: "/scratch"
  43. name: scratch
  44. resources:
  45. requests:
  46. memory: "0"
  47. limits:
  48. memory: "1Gi"
  49. volumes:
  50. - name: plex
  51. persistentVolumeClaim:
  52. claimName: plex-pvc
  53. - name: seedbox
  54. persistentVolumeClaim:
  55. claimName: seedbox-pvc
  56. - name: config
  57. persistentVolumeClaim:
  58. claimName: lidarr-pvc
  59. - name: scratch
  60. nfs:
  61. server: 172.16.69.52
  62. path: /data/torrents
  63. ---
  64. apiVersion: v1
  65. kind: Service
  66. metadata:
  67. name: lidarr-service
  68. namespace: plex
  69. spec:
  70. selector:
  71. app: lidarr
  72. type: ClusterIP
  73. ports:
  74. - name: lidarr-web-port
  75. protocol: TCP
  76. port: 8686
  77. targetPort: http-web-svc
  78. ---
  79. apiVersion: networking.k8s.io/v1
  80. kind: Ingress
  81. metadata:
  82. name: lidarr
  83. namespace: plex
  84. annotations:
  85. traefik.ingress.kubernetes.io/router.entrypoints: websecure
  86. traefik.ingress.kubernetes.io/router.middlewares: kube-system-lanonly@kubernetescrd
  87. spec:
  88. rules:
  89. - host: lidarr.lan.jibby.org
  90. http:
  91. paths:
  92. - path: /
  93. pathType: Prefix
  94. backend:
  95. service:
  96. name: lidarr-service
  97. port:
  98. number: 8686