There's already a nice docker setup for this, but I've been using this in kubernetes pretty nicely as a cronjob. |
||
|---|---|---|
| .. | ||
| config.yaml | ||
| cronjob.yaml | ||
| kustomization.yaml | ||
| README.md | ||
| subscriptions.yaml | ||
| volumes.yaml | ||
Deploying with Kubernetes
TL;DR
$ git clone git@github.com:jmbannon/ytdl-sub.git
$ cd ytdl-sub/kubernetes
$ $EDITOR kustomization.yaml subs.yaml presets.yaml
$ kuzomise build . | kubectl apply -f -
Configuration
Make sure you set the following to the right values for your kubernetes setup:
storageClassNamefor each of the volumes in./volumes.yamlnamespaceinkustomization.yamlimagesoverrides inkustomization.yamlif you don't want to use the minimal imagescheduleincronjob.yamlif you want to run on a different schedule (defaults to hourly.)
It should build a valid configuration without changing these kubernetes settings, but it will probably not be what you're expecting.
See the normal documentation for configuring the subs.yaml and presets.yaml files.