From 914164600b4cb78749fff4918a1595fe725901eb Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Wed, 29 Nov 2023 21:28:41 -0500 Subject: [PATCH] Add tautulli --- tautulli/tautulli-deployment.yaml | 44 +++++++++++++++++++++++++++++++ tautulli/tautulli-pvc.yaml | 13 +++++++++ tautulli/tautulli-service.yaml | 14 ++++++++++ 3 files changed, 71 insertions(+) create mode 100644 tautulli/tautulli-deployment.yaml create mode 100644 tautulli/tautulli-pvc.yaml create mode 100644 tautulli/tautulli-service.yaml diff --git a/tautulli/tautulli-deployment.yaml b/tautulli/tautulli-deployment.yaml new file mode 100644 index 0000000..0ae65c2 --- /dev/null +++ b/tautulli/tautulli-deployment.yaml @@ -0,0 +1,44 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: tautulli + namespace: tautulli-ns +spec: + replicas: 1 + selector: + matchLabels: + app: tautulli + template: + metadata: + labels: + app: tautulli + spec: + securityContext: + fsGroup: 1000 + initContainers: + - name: init-chown + image: apline + command: [ "sh", "-c", "chown -R 1000:1000 /mnt/data" ] + volumeMounts: + - name: tautulli-data + mountPath: "/mnt/data" + containers: + - name: tautulli + image: ghcr.io/tautulli/tautulli + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: TZ + value: "America/New_York" + ports: + - containerPort: 8181 + volumeMounts: + - name: tautulli-data + mountPath: "/config" + volumes: + - name: tautulli-data + persistentVolumeClaim: + claimName: tautulli-pvc + diff --git a/tautulli/tautulli-pvc.yaml b/tautulli/tautulli-pvc.yaml new file mode 100644 index 0000000..bc6c227 --- /dev/null +++ b/tautulli/tautulli-pvc.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: tautulli-pvc + namespace: tautulli-ns +spec: + accessModes: + - ReadWriteOnce + storageClassName: longhorn + resources: + requests: + storage: 1Gi + diff --git a/tautulli/tautulli-service.yaml b/tautulli/tautulli-service.yaml new file mode 100644 index 0000000..76a9b18 --- /dev/null +++ b/tautulli/tautulli-service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: tautulli-service + namespace: tautulli-ns +spec: + selector: + app: tautulli + ports: + - protocol: TCP + port: 80 + targetPort: 8181 + type: LoadBalancer +