sonarr.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. spec:
  17. containers:
  18. - name: sonarr
  19. image: lscr.io/linuxserver/sonarr:develop-4.0.0.344-ls383
  20. ports:
  21. - containerPort: 8989
  22. name: http-web-svc
  23. env:
  24. - name: TZ
  25. value: America/New_York
  26. - name: PUID
  27. value: "1000"
  28. - name: PGID
  29. value: "1000"
  30. volumeMounts:
  31. - mountPath: "/plex"
  32. name: plex
  33. - mountPath: "/config"
  34. name: config
  35. volumes:
  36. - name: plex
  37. persistentVolumeClaim:
  38. claimName: plex-pvc
  39. - name: config
  40. persistentVolumeClaim:
  41. claimName: sonarr-pvc
  42. ---
  43. apiVersion: v1
  44. kind: Service
  45. metadata:
  46. name: sonarr-service
  47. namespace: plex
  48. spec:
  49. selector:
  50. app: sonarr
  51. type: ClusterIP
  52. ports:
  53. - name: sonarr-web-port
  54. protocol: TCP
  55. port: 8989
  56. targetPort: http-web-svc