Skip to content

Conversation

@KaiSforza
Copy link

There's already a nice docker setup for this, but I've been using this in kubernetes pretty nicely as a cronjob.

Figured I might as well share if there are other people running kubernetes that want something simple like this, instead of the other options out there with fancy GUIs and stuff.

The minimal image is there so that it can run as a cronjob, keeping it as small as possible for running on a k8s cluster. It shaves off ~33% of the compressed size, so it's just a little bit faster. It's also a lot less complicated, since all we need to do is run ytdl-sub and nothing else.

There's already a nice docker setup for this, but I've been
using this in kubernetes pretty nicely as a cronjob.
```console
$ git clone [email protected]:jmbannon/ytdl-sub.git
$ cd ytdl-sub/kubernetes
$ $EDITOR kustomization.yaml subs.yaml presets.yaml
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename these to subscriptions.yaml and config.yaml, to keep consistent with the documentation

@@ -0,0 +1,13 @@
FROM python:alpine
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets include this in the k8s folder with an explanation in the README, I'd like to keep maintain this dir as the place for GH image release

Comment on lines +8 to +11
# Override this with your own image if you would like.
# This is a smaller image than the default that includes all the editor stuff.
- name: kaictl/ytdl-sub
newName: kaictl/ytdl-sub
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be easier for others to point to the existing headless image in the configurations, and add in the docs on how to make it faster via custom image. Wdyt?

Copy link
Owner

@jmbannon jmbannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments, appreciate the contribution! Once we get things squared away, we should make it more official and add k8s in the Installation list. I've seen a few folks with similar k8s setup so makes sense to better support this method, even if it confuses me 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants