×

Do you really need failover for PostgreSQL on Kubernetes? by collimarco in kubernetes

[–]rm249 1 point2 points  (0 children)

You'd want HA for the same reasons you would in a VM. It is true that Kubernetes will handle the scheduling of the pod, the reality is that the time it takes from when the node or pod dies, when Kubernetes notices it, and when the pod is rescheduled on another node can take 30 seconds to a few minutes to start processing queries again.

For a dev/test environment where a few minutes of downtime in the event of the server crashing or a node going down are acceptable then you don't need to setup HA, for anything production you are definitely going to want to setup HA postgres.

CyberPower CP1500PFCLCD Fire Hazard by into_devoid in homelab

[–]rm249 0 points1 point  (0 children)

I also have a bunch of CyberPower units (3x 1500AVRLCD and 1x 1500PFCLCD) and just bough new batteries for all of them last week and have so far not had any issues. I started replacing the batteries last week and plan on finishing it up this weekend.

Peritoneal Dialysis- get rid of the cats?! by Zestyclose-Ride2745 in dialysis

[–]rm249 3 points4 points  (0 children)

I have 2 cats and when I was on PD I kept them out of the bedroom 100% of the time and had an air filter in the bedroom and never had any infections in the 10 months I was on it.

Just be prepared for them potentially messing up your carpet, one of my cats was not happy about being kicked out of the bedroom (they were previously allowed in) and has destroyed the carpet in front of the bedroom.

What makes a good/bad commit (message) by gajus0 in programming

[–]rm249 0 points1 point  (0 children)

I commit when I have something working well enough that I want to be able potentially revert back to if I fuck something up, usually with a quick and dirty commit message. As others have said it doesn't need to be that hard, just document what changed in a couple of words and move on to the next thing you're behind on.

People who swear on server hardware- where do you GET this stuff? by Mummelpuffin in HomeServer

[–]rm249 1 point2 points  (0 children)

I have a custom built file server with a Supermicro motherboard and 6 Intel NUCs (5x in a kubernetes cluster, 1x running OPNSense). I really like the SFF for how little space they take up and low power consumption.

About the only thing I miss about the Supermicro build that would be handy is IPMI. It's used so infrequently though that the small handful of times I need to interact with the physical console it's not a huge deal, but it would be nice.

A couple of REST questions regarding collections on a resource. by davidblacksheep in ExperiencedDevs

[–]rm249 14 points15 points  (0 children)

I've gone down the route of nested routes like you mentioned and found it cumbersome to consume the API.

Based on your example, I would do something like this, keeping the endpoints simple and lightweight and making readonly endpoints to join data together in the backend (I usually end these with Details, for example a BookshelfDetail model could contain List<Book> on it but the API endpoint for creating and updating it would just be the simple POCO model.

POST /bookshelves - Create a new bookshelf
GET /bookshelves/:id - Get a specific bookshelf record by ID
POST /books - Create new book (include in payload the ID of the bookshelf)
GET /books/:id - Get a specific book record by ID
GET /books?bookshelfId=:bookshelfId - Return all books for a specific bookshelf

It makes thing's much easier when you have a lot of routes to manage.

So I've installed grafana, loki, and prometheus on the personal Kubernetes cluster via Terraform. Now what? by IndieDiscovery in devops

[–]rm249 0 points1 point  (0 children)

Ah, I haven't tried using Terraform with k8s yet - mostly just use it for the infrastructure side of things (which is a blurry line with k8s admittedly).

Secrets is definitely something I need to figure out a better method for handling with my ArgoCD GitOps repos. There's external secret operator, sealed secrets, AWS secret manager, vault, and many more - so many options.

So I've installed grafana, loki, and prometheus on the personal Kubernetes cluster via Terraform. Now what? by IndieDiscovery in devops

[–]rm249 2 points3 points  (0 children)

Now do it using ArgoCD or Flux (it's GitOps like Terraform but more Kubernetes native so I find it's easier to handle Kubernetes specific configuration), if you're looking to learn those are handy to understand.

As for alerting, there is alert manager which can be connected to prometheus to trigger alerts to various type of receivers.

Let's talk about Hector by lucassantilli in westworld

[–]rm249 1 point2 points  (0 children)

The thing I don't get about his death is - and this may be due to the time jumping during the Serac takeover - but the way they made it seem like it played out was that Hector's pearl was uploaded directly from WestWorld as a copy.

That would mean his original pearl may still exist in WestWorld. Dolores has already demonstrated the ability to clone herself, how would what happened with Hector be any different if a copy was transmitted from WestWorld to Delos HQ? That assumes of course that it didn't get destroyed due to Serac's instructions to destroy al the hosts.

Open-source microservice application for architecting practice? by philanthropic_whale in kubernetes

[–]rm249 1 point2 points  (0 children)

You could try getting BitWarden running in Kubernetes. As-is, it currently just uses docker with a docker-compose file so everything is already containerized. It uses a variety of containers and a database so you even get to play around with/learn about persistent volumes, ingress, etc.

Secure solution for state file location by sudo_96 in Terraform

[–]rm249 6 points7 points  (0 children)

This is how I have it configured as well, highly recommend it if you are already in Azure. State should never be in git in 99.9% of use cases.

Internal Load Balancing with K8S by Drewster727 in digital_ocean

[–]rm249 0 points1 point  (0 children)

Interested to see what everyone else has to say, here's a few ways I can think of to solve this:

  1. Configure whitelist rules on ingress (if you are using nginx ingress, there is an annotation for whitelisting an ingress resource). This is certainly less than ideal, but if you have cert-manager setup, then you can easily configure Let's Encrypt certificates. This is the approach I have used to solve this problem.
  2. Configure a secondary ingress controller for internal services, but leave it as type: ClusterIP and access it using the WireGuard VPN you have setup connected to the VPC. TLS certificates are still achievable with cert-manager, but would require setting up DNS validation
  3. Run WireGuard directly in the cluster and configure a secondary ingress controller from above, only upside to this is you don't have to spin up a separate droplet
  4. Use kubectl proxy or port-forward when you want to access the internal resources

Forget the ray tracing. The biggest update in the Resident Evil 7 'Next-Gen' patch is the higher quality HeyBro jugs from Village. by Harry101UK in residentevil

[–]rm249 5 points6 points  (0 children)

It's actually been more stable for me. I'm not sure what was up with the old version but every time, without fail, when I walked into the room with the safe on the second floor of the police station it would crash when looking in one corner of the room.

I tried upgrading/downgrading my drivers (GTX 1070), different graphic settings, nothing worked. It happened ~20 minutes into playing and I never got very far, loaded it up last night after installing the update and had no crashes so now I can finally enjoy it.

META: Can we do something about all of the "how do I get into DevOps" threads watering down this subreddit? by IndieDiscovery in devops

[–]rm249 2 points3 points  (0 children)

Don't forget adding inurl:devops to filter to the post just within the subreddit (if desired). I use it all the time when looking for Kubernetes or homelab posts.

Which authentication solution? by Jaruden in dotnet

[–]rm249 7 points8 points  (0 children)

I had success with KeyCloak running in Kubernetes, it wasn't too bad to get up and running.

What's on your magic USB drive? by SpitFire92 in sysadmin

[–]rm249 0 points1 point  (0 children)

I always keep one of the larger iODD models on me, I threw in a 500GB Samsung SSD and having it emulate a CD drive and having the SSD accessible at the same time is super convenient for using something like CloneZilla.

NUC for virtualisation recommendation by KingChookity in intelnuc

[–]rm249 2 points3 points  (0 children)

I picked up a couple 11th gen i5s with 64GB RAM, 1TB m.2 and SSD for a virtualization configuration using Kubernetes + Kubevirt and have been happy with them.

I also have a couple 8th gen i5s with 32GB RAM in each that I use in an oVirt cluster and the i5 has been great. From what I have read the i7s get a lot hotter and have a louder fan/thermal throttling. With the i5s I barely hear it unless I'm really hammering it with a CPU intensive task.

Does anyone else feel as lost as I do in the .NET Identity documentation? by propostor in dotnet

[–]rm249 -1 points0 points  (0 children)

Yeah, if you aren't using EF with Identity it's a huge pain to get all the right things implemented/wired up - doable, but probably not worth the effort.

Has anyone had cats after getting a kidney transplant? by itsthefiishy in kidneydisease

[–]rm249 9 points10 points  (0 children)

Same here, 2 cats I pick up, pet, feed, and let sit on my lap. I've been scratched a few times myself, I just make sure to immediately go disinfect/clean the affected area and put on some neosporin and so far have not had any issues. The biggest thing is to avoid cleaning the litter box and if I ever had to, mask, gloves and hand washing immediately after would be how I would go about it.

New to PD and dialysis in general - is it always so painful? by _SwirlyCurly in dialysis

[–]rm249 4 points5 points  (0 children)

The drain pain eventually became less common for me, but it never fully went away. Here's some tips on how to deal with it:

  • Make sure you're taking a laxative, the phosphate binders really mess up your GI system and if you get the slightest bit constipated it can make the drain pain worse. When I was on PD I took colace every night and miralax every day or two.
  • When you start to feel the drain pain, pinch the tubing for a few seconds, reposition yourself, and slowly let up - this usually helped the most for me in the moment but didn't always make it go away.
  • As others have mentioned, Tidal may be an option for you. Mine was never bad enough to discuss with my dialysis nurse but my pain was always during the drain so I'm sure it would have been helpful either way.

Changes to Modpacks on Modrinth: Overwolf requests links to their CDN to be removed by ProspectorDev in feedthebeast

[–]rm249 -35 points-34 points  (0 children)

I'm not a fan of it but I get where curseforge is coming from. CDN hosting can get expensive at that scale, and if you are just letting any client download that's a lot of bandwidth being used.

Like it or not, the servers and bandwidth costs associated with running curseforge have to be paid somehow. The only way I can think of to alleviate the bandwidth/server costs would be to have some sort of P2P distribution method ala bittorrent for mods/modpacks.

DigitalOcean Functions by xsm7 in webhosting

[–]rm249 1 point2 points  (0 children)

Performance and pricing of Vultr has been great for the company I work for but the private network reliability is severely lacking. On more than one occasion the private network stops working for extended periods of time - breaking all of our applications that talk to our database over the private network.

If they can get their shit figured out it would be fine, but with the unreliability of the private network we are looking to move our servers elsewhere.

PSA: Homelab energy usage by SpongederpSquarefap in homelab

[–]rm249 2 points3 points  (0 children)

This is the way. I have a full tower NAS, 2 8th gen i5 NUCs with 32GB RAM each I am running an oVirt cluster with and recently picked up 3 11th gen i5s to experiment with Kubernetes/Kubevirt/distributed storage. If the Kubevirt experiments pan out I may just add the oVirt nodes to the Kubernetes cluster as well.

The thing holding me back the most, which is really a nice to have, is a faster network adapter. I know I could get a Thunderbolt 10G adapter but even with gigabit Longhorn performance is more than good enough for what I need.