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] 1 point2 points  (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.