add rdtclient
This commit is contained in:
parent
3aecd2627d
commit
27e5034c14
46
mediaserver/base/mediaserver-deployment-rdtclient.yaml
Normal file
46
mediaserver/base/mediaserver-deployment-rdtclient.yaml
Normal 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
|
46
mediaserver/base/mediaserver-rdtclient-deployment.yaml
Normal file
46
mediaserver/base/mediaserver-rdtclient-deployment.yaml
Normal 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
|
12
mediaserver/base/mediaserver-rdtclient-ingress.yaml
Normal file
12
mediaserver/base/mediaserver-rdtclient-ingress.yaml
Normal 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: {}
|
23
mediaserver/base/mediaserver-rdtclient-pvc.yaml
Normal file
23
mediaserver/base/mediaserver-rdtclient-pvc.yaml
Normal 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
|
11
mediaserver/base/mediaserver-rdtclient-svc.yaml
Normal file
11
mediaserver/base/mediaserver-rdtclient-svc.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mediaserver-rdtclient
|
||||
spec:
|
||||
ports:
|
||||
- name: web
|
||||
port: 80
|
||||
targetPort: web
|
||||
selector:
|
||||
app: rdtclient
|
Loading…
Reference in New Issue
Block a user