This commit is contained in:
parent
069d3b0d24
commit
914164600b
44
tautulli/tautulli-deployment.yaml
Normal file
44
tautulli/tautulli-deployment.yaml
Normal file
@ -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
|
||||||
|
|
13
tautulli/tautulli-pvc.yaml
Normal file
13
tautulli/tautulli-pvc.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: tautulli-pvc
|
||||||
|
namespace: tautulli-ns
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
|
14
tautulli/tautulli-service.yaml
Normal file
14
tautulli/tautulli-service.yaml
Normal file
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user