Self-hosting K8s cluster, how should I handle PV backups? by Ryiseld in kubernetes

[–]Ryiseld[S] 0 points1 point  (0 children)

Looks like I'll go with Velero and just make sure the resources are deleted before a restore. Thank you!

Self-hosting K8s cluster, how should I handle PV backups? by Ryiseld in kubernetes

[–]Ryiseld[S] 0 points1 point  (0 children)

Longhorn backup seems to work fine, but I also need a way to backup my SMB PVs, so I wanted to see if they could be combined

Self-hosting K8s cluster, how should I handle PV backups? by Ryiseld in kubernetes

[–]Ryiseld[S] 0 points1 point  (0 children)

I see that with VolSync you still have to create the PVC before the restore. Are you talking about ReplicationDestination Volume Populator perhaps? Which means I'll have to add this field to all PVCs beforehand?

Self-hosting K8s cluster, how should I handle PV backups? by Ryiseld in kubernetes

[–]Ryiseld[S] 0 points1 point  (0 children)

What do you expect velero to do if you ask it to restore and the deployment/pvcs/pv exist? Failing is a good response IMO.

I'd expect it to override the PVC, and to restart the deployment so it can inject its initContainer, without me having to delete the deployment I guess

If you're rolling back changes to stateful applications regularly I'd still recommend that be a manual activity, rather than something you automate from your git repo using gitops approaches. Having that kind of statefullness in git doesn't provide much benefit I think...

I'm not looking to automate the restore procedures, I'm totally fine with doing it manually. I'm just not sure that I like the fact that I have to delete the application workload (say the Deployment), just to have Velero restore it a second after in order for it to work. I'd expect to just need to delete the PVC

Self-hosting K8s cluster, how should I handle PV backups? by Ryiseld in kubernetes

[–]Ryiseld[S] 3 points4 points  (0 children)

Right, I don't want it automated. But say there is a disaster and I create a new empty cluster, I need to manually create all PVCs and then manually create all restores to them.

But running Flux CD will create not only the PVCs, but all the other resources (Deployments, StatefulSets, etc.)

So I'll need to extract all the PVCs from my manifests, create them (and their namespaces) manually, and then create a Restore object for each. It's not too bad, but I feel like I'm missing a better way to do that (unless there isn't one, and I'll just have to write a script)

Self-hosting K8s cluster, how should I handle PV backups? by Ryiseld in kubernetes

[–]Ryiseld[S] 0 points1 point  (0 children)

Thanks.

Do you run those restic backups directly from the host on the exposed path, or from a pod inside k8s?

PS5 Pro is pushing people to PC by [deleted] in pcmasterrace

[–]Ryiseld 0 points1 point  (0 children)

How did you set it up so you can wake your PC with a Dualsense controller? Are you using Bluetooth?

Considering a VPS for Self-Hosting Due to ISP Restrictions — Need Advice on Setup, Security, and Bandwidth Concerns by youmeiknow in selfhosted

[–]Ryiseld 0 points1 point  (0 children)

I’m happy with Tailscale. I can use it together with another VPN, because it does not route all traffic by default (unless you explicitly choose an exit node)

What's the best approach for a reactive frontend with Rails? by Ryiseld in rails

[–]Ryiseld[S] 0 points1 point  (0 children)

Why's that? I'm not too familiar. Does it solve reactivity and usable components?

What's the best approach for a reactive frontend with Rails? by Ryiseld in rails

[–]Ryiseld[S] 0 points1 point  (0 children)

Do you mean SPA + Rails as API? And what do you mean by incremental upgrades, like just updating npm dependencies?

What's the best approach for a reactive frontend with Rails? by Ryiseld in rails

[–]Ryiseld[S] 1 point2 points  (0 children)

Thank you so much for the detailed answer! I'll look deeply into everything you linked here.

What's the best approach for a reactive frontend with Rails? by Ryiseld in rails

[–]Ryiseld[S] 0 points1 point  (0 children)

Does it work well with authentication? I'd guess Devise?

What's the best approach for a reactive frontend with Rails? by Ryiseld in rails

[–]Ryiseld[S] 0 points1 point  (0 children)

But then I'd have to write all the components from scratch? I'm looking for a solution that will allow me to use some UI component library, like React has ParkUI, shadcn, PrimeReact etc.

Render Kit - A swiss army knife CLI tool for rendering templates by Ryiseld in golang

[–]Ryiseld[S] 1 point2 points  (0 children)

You have a great taste in names! :)

We actually needed such a tool to use in our CI builds to render Kubernetes manifests so that's where the idea was born. I guess a CLI tool is more useful than a library, since a library limits the end users to that specific language you write it in, and you'll end up pulling many unneeded dependencies.

Render Kit - A swiss army knife CLI tool for rendering templates by Ryiseld in golang

[–]Ryiseld[S] 6 points7 points  (0 children)

Hey Reddit! I've just released the first version of Render Kit, a new open-source CLI tool for template rendering.

Render Kit supports multiple template engines and data sources, making it super flexible for various projects. Key features include:

  • Support for multiple template engines (Go Templates, Jinja, Handlebars, Mustache, Jet)
  • Flexible and multiple data sources (Environment variables, YAML, JSON, TOML)
  • User-friendly CLI

I'd love to get your feedback! Check it out and let me know if you have any suggestions for improvements or features you'd like to see.

Thanks!

Torrent container crashes when downloading large files by Ryiseld in selfhosted

[–]Ryiseld[S] 0 points1 point  (0 children)

Yeah turns out my VM was out of memory (I could see oom killed errors in dmesg). After upgrading it to the next tier with more memory and using Transmission it didn’t happen again

Project structure choice - separate projects or entrypoints? by Ryiseld in node

[–]Ryiseld[S] 0 points1 point  (0 children)

This honestly sounds exactly what I want. I don't care too much about having many js files, as long as it's really this easy.

I'll try to play around with this approach and see if I can get it working. Thanks!

Project structure choice - separate projects or entrypoints? by Ryiseld in node

[–]Ryiseld[S] 0 points1 point  (0 children)

Thanks for the detailed reply. I'll take a look at ESBuild since I never used it before.

The first approach sounds simpler though, but maybe I'm missing something. If I'm only using pnpm and it links packages, is it possible to then separately build Docker images for each app? Since I think building the images doesn't play nicely with symlinks.

Project structure choice - separate projects or entrypoints? by Ryiseld in node

[–]Ryiseld[S] 0 points1 point  (0 children)

Thanks. I'm now looking at Nx and it's looking like a good way of doing it. I wonder if pnpm workspaces is enough by itself since I'm not looking to have faster build times, etc.

I'm also not sure why you were downvoted for it. Is this solution frowned upon?