110 lines
2.6 KiB
YAML
110 lines
2.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: snapcast
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: snapcast
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: snapcast
|
|
spec:
|
|
containers:
|
|
- name: snapcast
|
|
image: snapcast
|
|
resources:
|
|
limits:
|
|
memory: "2Gi"
|
|
cpu: "2"
|
|
requests:
|
|
memory: "128Mi"
|
|
cpu: "250m"
|
|
ports:
|
|
# snapcast ports
|
|
- containerPort: 1704
|
|
- containerPort: 1705
|
|
# web interface
|
|
- containerPort: 1780
|
|
- containerPort: 1788
|
|
# avahi
|
|
- containerPort: 5353
|
|
# airplay
|
|
- containerPort: 3689
|
|
- containerPort: 5000
|
|
- containerPort: 6000
|
|
- containerPort: 6001
|
|
- containerPort: 6002
|
|
- containerPort: 6003
|
|
- containerPort: 6004
|
|
- containerPort: 6005
|
|
- containerPort: 6006
|
|
- containerPort: 6007
|
|
- containerPort: 6008
|
|
- containerPort: 6009
|
|
- containerPort: 7000
|
|
- containerPort: 319
|
|
- containerPort: 320
|
|
|
|
env:
|
|
- name: TZ
|
|
value: Europe/Berlin
|
|
- name: AIRPLAY_CONFIG_ENABLED
|
|
value: "1"
|
|
- name: SPOTIFY_CONFIG_ENABLED
|
|
value: "0"
|
|
- name: PIPE_CONFIG_ENABLED
|
|
value: "1"
|
|
- name: PIPE_PATH
|
|
value: /mnt/pipe/spotipipe
|
|
- name: PIPE_SOURCE_NAME
|
|
value: "Librespot"
|
|
# - name: PIPE_MODE
|
|
# value: "read"
|
|
- name: PIPE_EXTRA_ARGS
|
|
# see https://github.com/badaix/snapcast/issues/1248
|
|
value: "&sampleformat=44100:16:2"
|
|
volumeMounts:
|
|
- name: pipe
|
|
mountPath: /mnt/pipe
|
|
|
|
|
|
- name: librespot
|
|
image: librespot
|
|
resources:
|
|
limits:
|
|
memory: "2Gi"
|
|
cpu: "2"
|
|
requests:
|
|
memory: "128Mi"
|
|
cpu: "250m"
|
|
ports:
|
|
- containerPort: 5588 # default port for oauth callback
|
|
env:
|
|
- name: BACKEND
|
|
value: pipe
|
|
- name: DEVICE
|
|
value: /mnt/pipe/spotipipe
|
|
- name: DISABLE_DISCOVERY
|
|
value: Y
|
|
- name: AUTOPLAY
|
|
value: Y
|
|
# - name: VERBOSE
|
|
# value: Y
|
|
# - name: PASSTHROUGH
|
|
# value: Y
|
|
- name: ADDITIONAL_ARGUMENTS
|
|
value: "--enable-oauth --cache /cache"
|
|
volumeMounts:
|
|
- name: pipe
|
|
mountPath: /mnt/pipe
|
|
- name: credentials-cache
|
|
mountPath: /cache
|
|
volumes:
|
|
- name: pipe
|
|
emptyDir: {}
|
|
- name: credentials-cache
|
|
persistentVolumeClaim:
|
|
claimName: cache
|