add rdtclient

This commit is contained in:
Mans Ziesel 2024-10-27 11:39:45 +01:00
parent 3aecd2627d
commit 27e5034c14
5 changed files with 138 additions and 0 deletions

View File

@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: rdtclient
labels:
app: rdtclient
spec:
replicas: 1
selector:
matchLabels:
app: rdtclient
template:
metadata:
labels:
app: rdtclient
annotations:
spec:
volumes:
- name: rdtclient-data
persistentVolumeClaim:
claimName: mediaserver-rdtclient-data-pvc
- name: rdtclient-downloads
persistentVolumeClaim:
claimName: mediaserver-rdtclient-downloads-pvc
containers:
- name: rdtclient
image: rogerfar/rdtclient
resources:
requests:
cpu: 1
memory: 512Mi
ports:
- name: web
containerPort: 6500
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: Europe/Amsterdam
volumeMounts:
- mountPath: /data/downloads
name: rdtclient-downloads
- mountPath: /data/db
name: rdtclient-data

View File

@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: rdtclient
labels:
app: rdtclient
spec:
replicas: 1
selector:
matchLabels:
app: rdtclient
template:
metadata:
labels:
app: rdtclient
annotations:
spec:
volumes:
- name: rdtclient-data
persistentVolumeClaim:
claimName: mediaserver-rdtclient-data-pvc
- name: rdtclient-downloads
persistentVolumeClaim:
claimName: mediaserver-rdtclient-downloads-pvc
containers:
- name: rdtclient
image: rogerfar/rdtclient
resources:
requests:
cpu: 1
memory: 512Mi
ports:
- name: web
containerPort: 6500
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: Europe/Amsterdam
volumeMounts:
- mountPath: /data/downloads
name: rdtclient-downloads
- mountPath: /data/db
name: rdtclient-data

View File

@ -0,0 +1,12 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: mediaserver-rdtclient-ingressroute
spec:
routes:
- match: Host(`rdtclient.k8s.mziesel.nl`)
kind: Rule
services:
- name: mediaserver-rdtclient
port: web
tls: {}

View File

@ -0,0 +1,23 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mediaserver-rdtclient-data-pvc
spec:
storageClassName: nfs-client
accessModes:
- ReadWriteMany
resources:
requests:
storage: 2Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mediaserver-rdtclient-downloads-pvc
spec:
storageClassName: nfs-client
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: mediaserver-rdtclient
spec:
ports:
- name: web
port: 80
targetPort: web
selector:
app: rdtclient