47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
name: furumi-dev-player
|
||
|
|
labels:
|
||
|
|
app: furumi-dev-player
|
||
|
|
spec:
|
||
|
|
replicas: 1
|
||
|
|
selector:
|
||
|
|
matchLabels:
|
||
|
|
app: furumi-dev-player
|
||
|
|
template:
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
app: furumi-dev-player
|
||
|
|
spec:
|
||
|
|
nodeSelector:
|
||
|
|
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||
|
|
containers:
|
||
|
|
- name: furumi-dev-player
|
||
|
|
image: ultradesu/furumusic:latest
|
||
|
|
imagePullPolicy: Always
|
||
|
|
env:
|
||
|
|
- name: FURU_DATABASE_URL
|
||
|
|
valueFrom:
|
||
|
|
secretKeyRef:
|
||
|
|
name: furumi-dev-creds
|
||
|
|
key: PG_STRING
|
||
|
|
ports:
|
||
|
|
- containerPort: 8000
|
||
|
|
name: http
|
||
|
|
volumeMounts:
|
||
|
|
- name: library
|
||
|
|
mountPath: /media
|
||
|
|
- name: inbox
|
||
|
|
mountPath: /inbox
|
||
|
|
volumes:
|
||
|
|
- name: library
|
||
|
|
hostPath:
|
||
|
|
path: /k8s/furumi-dev/library-new
|
||
|
|
type: DirectoryOrCreate
|
||
|
|
- name: inbox
|
||
|
|
hostPath:
|
||
|
|
path: /k8s/furumi-dev/inbox-new
|
||
|
|
type: DirectoryOrCreate
|
||
|
|
|