Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 17s
Co-Authored-By: Claude <noreply@anthropic.com>
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: furumi-player
|
|
labels:
|
|
app: furumi-player
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate # the library is a hostPath on a single node
|
|
selector:
|
|
matchLabels:
|
|
app: furumi-player
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: furumi-player
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
spec:
|
|
# The music library lives on this node's /data (LVM raid, not replicated).
|
|
nodeSelector:
|
|
kubernetes.io/hostname: music
|
|
containers:
|
|
- name: furumi-player
|
|
image: ultradesu/furumusic:latest
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: FURU_DATABASE_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: furumi-creds
|
|
key: PG_STRING
|
|
ports:
|
|
- name: http
|
|
containerPort: 8000
|
|
volumeMounts:
|
|
- name: library
|
|
mountPath: /media
|
|
- name: inbox
|
|
mountPath: /inbox
|
|
volumes:
|
|
- name: library
|
|
hostPath:
|
|
path: /data/furumi/library
|
|
type: Directory
|
|
- name: inbox
|
|
hostPath:
|
|
path: /data/furumi/inbox
|
|
type: Directory
|