Add tunedrop
This commit is contained in:
parent
fcbc581ac5
commit
b781fe57eb
21
argocd-apps/tunedrop.yaml
Normal file
21
argocd-apps/tunedrop.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: tunedrop
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: my-apps
|
||||||
|
source:
|
||||||
|
repoURL: https://git.dvirlabs.com/dvirlabs/my-apps.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: charts/tunedrop
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- ../../manifests/tunedrop/values.yaml
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: my-apps
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
9
charts/tunedrop-chart/Chart.yaml
Normal file
9
charts/tunedrop-chart/Chart.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: tunedrop
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "1.0.0"
|
||||||
|
description: Tunedrop - Music Downloader API
|
||||||
|
|
||||||
|
dependencies: []
|
||||||
|
|
||||||
|
type: application
|
||||||
30
charts/tunedrop-chart/templates/deployment.yaml
Normal file
30
charts/tunedrop-chart/templates/deployment.yaml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: tunedrop
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: tunedrop
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: tunedrop
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: tunedrop
|
||||||
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
env:
|
||||||
|
- name: MUSIC_DIR
|
||||||
|
value: {{ .Values.env.MUSIC_DIR | quote }}
|
||||||
|
- name: NAVIDROME_SCAN_URL
|
||||||
|
value: {{ .Values.env.NAVIDROME_SCAN_URL | quote }}
|
||||||
|
volumeMounts:
|
||||||
|
- name: music
|
||||||
|
mountPath: {{ .Values.persistence.mountPath }}
|
||||||
|
volumes:
|
||||||
|
- name: music
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: tunedrop-pvc
|
||||||
11
charts/tunedrop-chart/templates/pvc.yaml
Normal file
11
charts/tunedrop-chart/templates/pvc.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: tunedrop-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- {{ .Values.persistence.accessMode }}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.persistence.size }}
|
||||||
|
storageClassName: {{ .Values.persistence.storageClass }}
|
||||||
27
charts/tunedrop-chart/values.yaml
Normal file
27
charts/tunedrop-chart/values.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
image:
|
||||||
|
repository: my-apps/tunedrop
|
||||||
|
tag: latest
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
className: traefik
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
|
hosts:
|
||||||
|
- host: tunedrop.dvirlabs.com
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
|
||||||
|
env:
|
||||||
|
MUSIC_DIR: /music
|
||||||
|
NAVIDROME_SCAN_URL: http://navidrome.my-apps.svc.cluster.local:4533/api/rescan
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
mountPath: /music
|
||||||
|
size: 100Gi
|
||||||
|
accessMode: ReadWriteMany
|
||||||
|
storageClass: nfs-client
|
||||||
27
manifests/tunedrop/values.yaml
Normal file
27
manifests/tunedrop/values.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
image:
|
||||||
|
repository: my-apps/tunedrop
|
||||||
|
tag: latest
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
className: traefik
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
|
hosts:
|
||||||
|
- host: tunedrop.dvirlabs.com
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
|
||||||
|
env:
|
||||||
|
MUSIC_DIR: /music
|
||||||
|
NAVIDROME_SCAN_URL: http://navidrome.my-apps.svc.cluster.local:4533/api/rescan
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
mountPath: /music
|
||||||
|
size: 100Gi
|
||||||
|
accessMode: ReadWriteMany
|
||||||
|
storageClass: nfs-client
|
||||||
Loading…
x
Reference in New Issue
Block a user