From 4a58cac641738c950cede16d56e32bb9a252bf74 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 6 Jul 2024 20:13:50 -0400 Subject: [PATCH] add bazarr --- cluster/apps/production/bazarr/bazarr.yaml | 96 ++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 cluster/apps/production/bazarr/bazarr.yaml diff --git a/cluster/apps/production/bazarr/bazarr.yaml b/cluster/apps/production/bazarr/bazarr.yaml new file mode 100644 index 0000000..96025a9 --- /dev/null +++ b/cluster/apps/production/bazarr/bazarr.yaml @@ -0,0 +1,96 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: bazarr + namespace: default + labels: + app: bazarr +spec: + replicas: 1 + selector: + matchLabels: + app: bazarr + template: + metadata: + labels: + app: bazarr + spec: + containers: + - name: bazarr + image: ghcr.io/linuxserver/bazarr@sha256:86ad012fc31e974dcf0147900a202443d92d12f4334a9e4ec89baa2052fb12fa + imagePullPolicy: IfNotPresent + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: TZ + value: America/New_York + resources: + requests: + memory: "512Mi" + cpu: "75m" + limits: + memory: "535Mi" + cpu: "100m" + volumeMounts: + - mountPath: /config + name: bazarr-config + - mountPath: /data + name: nas + volumes: + - name: nas + nfs: + path: /mnt/thePool/thePoolShare + server: 10.0.0.10 + - name: bazarr-config + persistentVolumeClaim: + claimName: bazarr-config +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: bazarr-config + namespace: default +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + storageClassName: longhorn +--- +apiVersion: v1 +kind: Service +metadata: + name: headless-bazarr + namespace: default +spec: + selector: + app: bazarr + ports: + - port: 6767 + targetPort: 6767 + protocol: TCP + type: ClusterIP +--- +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: bazarr + namespace: default + annotations: + kubernetes.io/ingress.class: traefik-external +spec: + entryPoints: + - websecure + routes: + - match: Host(`bazarr.local.mafyuh.com`) + kind: Rule + services: + - name: headless-bazarr + port: 6767 + middlewares: + - name: default-headers + tls: + secretName: local-mafyuh-com-production-tls