Skip to content

Commit

Permalink
apps: base: Add youtube-dl-json.
Browse files Browse the repository at this point in the history
  • Loading branch information
wigust committed Oct 27, 2023
1 parent 2245781 commit d39a183
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
34 changes: 34 additions & 0 deletions apps/base/youtube-dl-json/job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: batch/v1
kind: Job
metadata:
name: youtube-dl
spec:
template:
spec:
containers:
- name: youtube-dl
image: nixery.dev/youtube-dl
command: ["/bin/youtube-dl"]
args:
- --write-info-json
- --skip-download
- --ignore-errors
- 'https://www.youtube.com/playlist?list=PLmjgicsUWIkvEKkLN01vm85neXAik3yU2'
workingDir: /workdir
volumeMounts:
- mountPath: /workdir
name: data
resources:
limits:
cpu: 2000m
memory: 2048Mi
requests:
cpu: 10m
memory: 128Mi
volumes:
- name: data
hostPath:
path: /home/oleg/src/music
type: Directory
restartPolicy: Never
backoffLimit: 0
6 changes: 6 additions & 0 deletions apps/base/youtube-dl-json/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: youtube-dl-json
resources:
- namespace.yaml
- job.yaml
4 changes: 4 additions & 0 deletions apps/base/youtube-dl-json/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: youtube-dl-json

0 comments on commit d39a183

Please sign in to comment.