feat: add Docker image, Helm chart and Gitea CI
- multi-stage Dockerfile with ffmpeg on Alpine JRE 21 - Helm chart for k3s: library ConfigMap, Vault users secret, data PVC, read-only hostPath media, ingress, probes and security context - Gitea Actions runs tests, smoke test and chart lint, then builds and pushes the image on main and version tags
This commit is contained in:
1 parent
18a1d7cd19
commit
25331ec0e1
12 files changed
+494
-11
No files matched your search
@@ -0,0 +1,88 @@
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: gitea.tap-tap.win/tap-tap/audiomanager
|
||||
tag: "" # defaults to appVersion
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
# Rendered into a ConfigMap as /etc/musicmanager/library.yaml.
|
||||
# Keep folder IDs stable: they are part of song IDs.
|
||||
library:
|
||||
folders:
|
||||
- id: 1
|
||||
name: "Music"
|
||||
type: music
|
||||
path: /mnt/media/music
|
||||
- id: 10
|
||||
name: "Audiobooks & Podcasts"
|
||||
type: longform
|
||||
path: /mnt/media/longform
|
||||
|
||||
# Vault-managed users.yaml. The secret must already exist and contain the key below.
|
||||
users:
|
||||
existingSecret: musicmanager-users
|
||||
key: users.yaml
|
||||
|
||||
data:
|
||||
persistence:
|
||||
enabled: true
|
||||
size: 5Gi
|
||||
storageClass: ""
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
|
||||
# hostPath mounts shared by every schedulable node. Read-only in the pod.
|
||||
media:
|
||||
music:
|
||||
hostPath: /mnt/media/music
|
||||
mountPath: /mnt/media/music
|
||||
longform:
|
||||
hostPath: /mnt/media/longform
|
||||
mountPath: /mnt/media/longform
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 8080
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
className: traefik
|
||||
host: subsonic.tap-tap.win
|
||||
path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
enabled: true
|
||||
secretName: subsonic-tap-tap-win-tls
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 512Mi
|
||||
|
||||
podSecurityContext:
|
||||
fsGroup: 10001
|
||||
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 10001
|
||||
runAsGroup: 10001
|
||||
readOnlyRootFilesystem: true
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
|
||||
env:
|
||||
- name: WEB_UI
|
||||
value: "true"
|
||||
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
affinity: {}
|
||||
Reference in new issue
Block a user