mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-21 15:30:19 +00:00
update
This commit is contained in:
parent
1c71a54f5a
commit
1c69ba67a4
2 changed files with 69 additions and 1 deletions
68
Kubernetes/GPU-Passthrough/jellyfin.yaml
Normal file
68
Kubernetes/GPU-Passthrough/jellyfin.yaml
Normal file
|
@ -0,0 +1,68 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: jellyfin
|
||||
app.kubernetes.io/instance: jellyfin
|
||||
app.kubernetes.io/name: jellyfin
|
||||
name: jellyfin
|
||||
namespace: jellyfin
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: jellyfin
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: jellyfin
|
||||
app.kubernetes.io/name: jellyfin
|
||||
spec:
|
||||
nodeSelector:
|
||||
worker: "true"
|
||||
containers:
|
||||
- image: jellyfin/jellyfin
|
||||
imagePullPolicy: Always
|
||||
name: jellyfin
|
||||
resources:
|
||||
limits:
|
||||
gpu.intel.com/i915: "1" # requesting 1 GPU
|
||||
ports:
|
||||
- containerPort: 8096
|
||||
name: web
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: TZ
|
||||
value: Europe/London
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: jellyfin
|
||||
subPath: config
|
||||
- mountPath: /cache
|
||||
name: jellyfin
|
||||
subPath: cache
|
||||
volumes:
|
||||
- name: jellyfin
|
||||
persistentVolumeClaim:
|
||||
claimName: jellyfin
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: jellyfin
|
||||
name: jellyfin
|
||||
namespace: jellyfin
|
||||
spec:
|
||||
ports:
|
||||
- name: web-tcp
|
||||
port: 8096
|
||||
protocol: TCP
|
||||
targetPort: 8096
|
||||
- name: web-udp
|
||||
port: 8096
|
||||
protocol: UDP
|
||||
targetPort: 8096
|
||||
selector:
|
||||
app: jellyfin
|
|
@ -17,7 +17,7 @@ node-label:
|
|||
# Install RKE2
|
||||
```
|
||||
sudo su
|
||||
sudo curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="agent" sh -
|
||||
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="agent" sh -
|
||||
```
|
||||
# Enable RKE2
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue