Sharing my #Terraform setup for self-hosting #Mastodon: https://github.com/tjpalanca/tjcloud/tree/master/modules/mastodon

It's deployed as 3 images (web, streaming, and sidekiq) on #kubernetes based off of the official docker image, and the databases are run in the database module.

@tjpalanca How heavy is that? I've been considering starting a personal one or perhaps one of the forks if i end up sticking to the #fediverse long term. #hosting

@BlueGreenZeros

Admittedly quite memory-heavy even if I am the only user. I haven't yet tuned it to default settings - I can think of reducing the number of sidekiq processes/threads as a start.

@tjpalanca Thanks! doesn't look bad at all, may be able to run it off of a small raspberry pi server i already have if i get an actual SSD for it! running postgres on a SD card doesn't sound like a good idea 😅

@BlueGreenZeros Haha yes, it is quite I/O heavy on media as well. My instance has only been around for 2 days and its cached 8GB, it does delete them after 7 days (configurable) though.

If you ever get around to it would love to see the setup :)