80 lines
1.8 KiB
YAML
80 lines
1.8 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
run: airsonic
|
|
name: airsonic
|
|
namespace: pew
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
run: airsonic
|
|
template:
|
|
metadata:
|
|
labels:
|
|
run: airsonic
|
|
spec:
|
|
containers:
|
|
- name: airsonic
|
|
image: linuxserver/airsonic:v10.6.2-ls83
|
|
env:
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: PGID
|
|
value: "1000"
|
|
- name: TZ
|
|
value: "US/Eastern"
|
|
volumeMounts:
|
|
- mountPath: /config
|
|
name: airsonic-config
|
|
readOnly: false
|
|
- mountPath: /media/music
|
|
name: bigdata-music
|
|
readOnly: true
|
|
- mountPath: /media/playlists
|
|
name: bigdata-playlists
|
|
readOnly: true
|
|
- mountPath: /media/podcasts
|
|
name: bigdata-podcasts
|
|
readOnly: true
|
|
- mountPath: /media/media-vtluug
|
|
name: vtluug-media
|
|
readOnly: true
|
|
ports:
|
|
- name: http
|
|
containerPort: 4040
|
|
volumes:
|
|
- name: airsonic-config
|
|
hostPath:
|
|
path: /bigdata/k8s-config/airsonic/config
|
|
- name: bigdata-music
|
|
hostPath:
|
|
path: /bigdata/media/music
|
|
- name: bigdata-playlists
|
|
hostPath:
|
|
path: /bigdata/media/playlists
|
|
- name: bigdata-podcasts
|
|
hostPath:
|
|
path: /bigdata/media/podcasts
|
|
- name: vtluug-media
|
|
hostPath:
|
|
path: /media-vtluug
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
run: airsonic
|
|
name: airsonic
|
|
namespace: pew
|
|
spec:
|
|
selector:
|
|
run: airsonic
|
|
ports:
|
|
- name: http
|
|
port: 4040
|
|
protocol: TCP
|