-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdeployment.yaml
More file actions
98 lines (89 loc) · 2.22 KB
/
deployment.yaml
File metadata and controls
98 lines (89 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
apiVersion: v1
kind: Namespace
metadata:
name: audiomuse-ai-all-in-one
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: audiomuse-ai-config-pvc
namespace: audiomuse-ai-all-in-one
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: audiomuse-ai-music-pvc
namespace: audiomuse-ai-all-in-one
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 50Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: audiomuse-ai-all-in-one-deployment
namespace: audiomuse-ai-all-in-one
spec:
replicas: 1
selector:
matchLabels:
app: audiomuse-ai-all-in-one
template:
metadata:
labels:
app: audiomuse-ai-all-in-one
spec:
containers:
- name: audiomuse-ai-all-in-one
image: ghcr.io/neptunehub/audiomuse-ai-musicserver:latest
imagePullPolicy: Always
ports:
- containerPort: 8080 # Music Server Backend
- containerPort: 3000 # Music Server Frontend
env:
- name: DATABASE_PATH
value: "/config/music.db"
volumeMounts:
- name: config-storage
mountPath: /config # ALL DATABASES GO HERE
- name: music-storage
mountPath: /music # MUSIC FILES GO HERE
volumes:
- name: config-storage
persistentVolumeClaim:
claimName: audiomuse-ai-config-pvc
- name: music-storage
persistentVolumeClaim:
claimName: audiomuse-ai-music-pvc
---
apiVersion: v1
kind: Service
metadata:
name: audiomuse-service
namespace: audiomuse-ai-all-in-one
spec:
selector:
app: audiomuse-ai-all-in-one
type: LoadBalancer
#loadBalancerIP: 192.168.3.77 # Optional: specify a static IP if your environment supports it, or comment it
ports:
- name: web
protocol: TCP
port: 8080
targetPort: 8080
# Legacy frontend port (no longer used since Go serves static files)
# - name: frontend
# protocol: TCP
# port: 3000
# targetPort: 3000