sonarr.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: sonarr
  6. namespace: plex
  7. spec:
  8. strategy:
  9. type: Recreate
  10. selector:
  11. matchLabels:
  12. app: sonarr
  13. replicas: 1
  14. template:
  15. metadata:
  16. labels:
  17. app: sonarr
  18. annotations:
  19. backup.velero.io/backup-volumes-excludes: plex,seedbox
  20. spec:
  21. containers:
  22. - name: sonarr
  23. image: lscr.io/linuxserver/sonarr:latest
  24. imagePullPolicy: Always
  25. ports:
  26. - containerPort: 8989
  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: "/config"
  39. name: config
  40. - mountPath: "/scratch"
  41. name: seedbox
  42. volumes:
  43. - name: plex
  44. persistentVolumeClaim:
  45. claimName: plex-pvc
  46. - name: config
  47. persistentVolumeClaim:
  48. claimName: sonarr-pvc
  49. - name: seedbox
  50. nfs:
  51. server: 172.16.69.253
  52. path: /seedbox/torrents
  53. ---
  54. apiVersion: v1
  55. kind: Service
  56. metadata:
  57. name: sonarr-service
  58. namespace: plex
  59. spec:
  60. selector:
  61. app: sonarr
  62. type: ClusterIP
  63. ports:
  64. - name: sonarr-web-port
  65. protocol: TCP
  66. port: 8989
  67. targetPort: http-web-svc
  68. ---
  69. apiVersion: networking.k8s.io/v1
  70. kind: Ingress
  71. metadata:
  72. name: sonarr
  73. namespace: plex
  74. annotations:
  75. traefik.ingress.kubernetes.io/router.entrypoints: websecure
  76. traefik.ingress.kubernetes.io/router.middlewares: kube-system-lanonly@kubernetescrd
  77. spec:
  78. rules:
  79. - host: sonarr.lan.jibby.org
  80. http:
  81. paths:
  82. - path: /
  83. pathType: Prefix
  84. backend:
  85. service:
  86. name: sonarr-service
  87. port:
  88. number: 8989