sonarr.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: sonarr
  6. namespace: plex
  7. spec:
  8. selector:
  9. matchLabels:
  10. app: sonarr
  11. replicas: 1
  12. template:
  13. metadata:
  14. labels:
  15. app: sonarr
  16. annotations:
  17. backup.velero.io/backup-volumes-excludes: plex
  18. spec:
  19. containers:
  20. - name: sonarr
  21. image: lscr.io/linuxserver/sonarr:develop-4.0.0.344-ls383
  22. ports:
  23. - containerPort: 8989
  24. name: http-web-svc
  25. env:
  26. - name: TZ
  27. value: America/New_York
  28. - name: PUID
  29. value: "1000"
  30. - name: PGID
  31. value: "1000"
  32. volumeMounts:
  33. - mountPath: "/plex"
  34. name: plex
  35. - mountPath: "/config"
  36. name: config
  37. volumes:
  38. - name: plex
  39. persistentVolumeClaim:
  40. claimName: plex-pvc
  41. - name: config
  42. persistentVolumeClaim:
  43. claimName: sonarr-pvc
  44. ---
  45. apiVersion: v1
  46. kind: Service
  47. metadata:
  48. name: sonarr-service
  49. namespace: plex
  50. spec:
  51. selector:
  52. app: sonarr
  53. type: ClusterIP
  54. ports:
  55. - name: sonarr-web-port
  56. protocol: TCP
  57. port: 8989
  58. targetPort: http-web-svc