Initial commit
This commit is contained in:
commit
55b0cfc1f3
10 changed files with 298 additions and 0 deletions
70
soulseek/deployment.yml
Normal file
70
soulseek/deployment.yml
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: soulseek
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: soulseek
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: soulseek
|
||||
spec:
|
||||
containers:
|
||||
- name: soulseek
|
||||
image: slskd/slskd
|
||||
imagePullPolicy: IfNotPresent
|
||||
resources:
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "1"
|
||||
ports:
|
||||
- containerPort: 5030
|
||||
- containerPort: 50300
|
||||
volumeMounts:
|
||||
- name: soulseek-config
|
||||
mountPath: /app
|
||||
- name: music
|
||||
mountPath: /music
|
||||
- name: downloads
|
||||
mountPath: /downloads
|
||||
env:
|
||||
- name: SLSKD_REMOTE_CONFIGURATION
|
||||
value: "true"
|
||||
- name: SLSKD_SLSK_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: username
|
||||
name: soulseek-creds
|
||||
- name: SLSKD_SLSK_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: password
|
||||
name: soulseek-creds
|
||||
- name: SLSKD_SHARED_DIR
|
||||
value: /music
|
||||
- name: SLSKD_DOWNLOADS_DIR
|
||||
value: /downloads
|
||||
volumes:
|
||||
- name: soulseek-config
|
||||
persistentVolumeClaim:
|
||||
claimName: soulseek-config
|
||||
- name: music
|
||||
hostPath:
|
||||
path: /mnt/nfs/music
|
||||
- name: downloads
|
||||
hostPath:
|
||||
path: /mnt/nfs/soulseek
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: soulseek-config
|
||||
spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: 128Mi
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
Loading…
Add table
Add a link
Reference in a new issue