54 lines
1.3 KiB
YAML
54 lines
1.3 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:
|
|
exec:
|
|
command:
|
|
- cat
|
|
- /tmp/FAILNOW
|
|
# httpGet:
|
|
# path: /health
|
|
# port: 5030
|
|
initialDelaySeconds: 21600 #reboot server every quarter day
|
|
#initialDelaySeconds: 60
|
|
failureThreshold: 2
|
|
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
|
|
|