Files
home/k8s_manifests/slskd/deployment.yaml
2025-05-15 15:24:03 +02:00

49 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: slskd
labels:
app.kubernetes.io/name: slskd
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: slskd
template:
metadata:
labels:
app.kubernetes.io/name: slskd
spec:
volumes:
- name: nfs-vol
nfs:
server: 192.168.0.99
path: /mnt/test1/media/Music
- name: config
nfs:
server: 192.168.0.99
path: /mnt/test1/media/config/slskd/
containers:
- name: slskd
image: slskd/slskd:latest
livenessProbe:
httpGet:
path: /health
port: 5030
initialDelaySeconds: 60
failureThreshold: 6
periodSeconds: 10
env:
- name: SLSKD_REMOTE_CONFIGURATION
value: "true"
ports:
- containerPort: 5030
- containerPort: 5031
- containerPort: 50300
volumeMounts:
- name: config
mountPath: /config
- name: nfs-vol
mountPath: /app