bazarr.yaml 1.7 KB

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