diff --git a/apps/plex/base/pvc.yaml b/apps/plex/base/pvc.yaml index 8925c78..486c6c0 100644 --- a/apps/plex/base/pvc.yaml +++ b/apps/plex/base/pvc.yaml @@ -4,7 +4,19 @@ metadata: name: plex-config spec: accessModes: - - ReadWriteOnce + - ReadWriteMany + resources: + requests: + storage: 100Mi + +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: tautulli-config +spec: + accessModes: + - ReadWriteMany resources: requests: storage: 100Mi diff --git a/apps/plex/base/tautulli-deployment.yaml b/apps/plex/base/tautulli-deployment.yaml new file mode 100644 index 0000000..ea40a4b --- /dev/null +++ b/apps/plex/base/tautulli-deployment.yaml @@ -0,0 +1,50 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: tautulli + labels: + app: tautulli +spec: + replicas: 1 + selector: + matchLabels: + app: tautulli + template: + metadata: + annotations: + labels: + app: tautulli + spec: + volumes: + - name: tautulli-config + persistentVolumeClaim: + claimName: tautulli-config + - name: plex-config + persistentVolumeClaim: + claimName: plex-config + containers: + - name: tautulli + image: ghcr.io/tautulli/tautulli + imagePullPolicy: Always + resources: + requests: + cpu: 1 + memory: 512Mi + ports: + - containerPort: 8181 + name: http + env: + - name: PGID + value: "1000" + - name: PUID + value: "1000" + - name: TZ + value: UTC + volumeMounts: + - mountPath: /config + name: tautulli-config + + - name: plex-config + mountPath: /plex-logs + subPath: "Plex Media Server/Logs" + readOnly: true