Live data from Hacker News

My self-hosting infrastructure, fully automated

github.com

201–210 of 228 posts

Re: My self-hosting infrastructure, fully automated

#201
post #139
post #101

Earlier quoted context omitted.

If it's images, files then something like S3. If it's a database then I mount it locally on the host.

What do you do if the host goes down?

Nothing happens to the data -- it's still intact when the host comes back up. Happy to clarify further though if that's not what you meant.

Re: My self-hosting infrastructure, fully automated

#202

For people who self host with like setups or even simpler - how you guarantee network access? where I live internet might be shaky at times, and for that I can't access my home setup while away. How do you deal with that?

I use ZeroTier. Works well with flaky internet

Re: My self-hosting infrastructure, fully automated

#203
post #201
post #139

Earlier quoted context omitted.

What do you do if the host goes down?

Nothing happens to the data -- it's still intact when the host comes back up. Happy to clarify further though if that's not what you meant.

Ah, so your systems are down until you fix a node, and if the drive(s) fail you have a dead node you're stuck restoring backups.

I guess that's fine, I'm just used to having labs to test how I can avoid single instance failures. :)

Re: My self-hosting infrastructure, fully automated

#204
Now all we need is robots hooked into a Ci/CD pipeline that turn on computers and initiate the process. And a few more years to automate computer production, let the computers find bugs & optimize computers, and we have a full circle of life.

Good first version, i am excited for the beta!

Re: My self-hosting infrastructure, fully automated

#205
post #174

Earlier quoted context omitted.

It doesn't make sense, but often people who set up K8s at home do it for educational reasons or just having a playground so they are more capable at administering systems like that at work.

Sure, using K8S in your learning envornment because you're managing 800 different services in your dayjob is fine. Personally I have my learning environment as part of my day job though. At home I just want things to work, hence a nice simple LAMP

Agreed. I don't even want Kubernetes at work.

Re: My self-hosting infrastructure, fully automated

#206
post #28

This needs a companion guide about how to set up the host machine. Which Linux distro to choose, how to set it up / harden it, nftables / firewall, public key login, etc. If anyone has one handy, I'd appreciate a link.

Several people in this thread stating they are working on solutions to assist others learning modern cloud/devops stacks. I’ll throw my name in the hat too. I have a single node home lab running enterprise cloud/devops software stack. I have been working on a project to deploy on-prem cloud (OpenStack) in disconnected environment. I’ve had to learn how to build and host all of the infrastructure required to do this without the luxury of internet access. I realized the same thing can be simulated very cheap in a modern computer with enough cores and memory to run the stack as a single bare metal host. My build cost $1300 2 years ago but the knowledge gained has paid me back 5 figures worth of raises in my career in 16 months.

Having my own personal CloudBox has allowed me to experiment and fail fast. I am ahead in experience and knowledge than the rest of my team as a result. I have a tool they do not. I realize it would be better if we all had a tool like this.

So that’s the pitch, a single node “cloud in a box’, the CloudBox for IT students or professionals to learn any aspect of IT.

Now I just need lots more time to actually turn my prototype into a product.

Re: My self-hosting infrastructure, fully automated

#207

Earlier quoted context omitted.

I can’t think of a single time I’ve had an Apache config break with upgrades - other than having to recompile the webservice proxy module to change the case of the Upgrade header for a device that doesn’t work with the standards and is case sensitive (Major upgrades every couple of years break the binary compatibility)

I am pretty confident it broke for me between 12.04 and 14.04 Ubuntu releases, and I am pretty sure both were already in the 2.x series. Most likely the change in NameVirtualHost behaviour as listed at https://httpd.apache.org/docs/2.4/upgrading.html , but there are a bunch of other changes too.

Oh sure every few years when you upgrade to a new OS, but not a normal security upgrade.

Re: My self-hosting infrastructure, fully automated

#208

For people who self host with like setups or even simpler - how you guarantee network access? where I live internet might be shaky at times, and for that I can't access my home setup while away. How do you deal with that?

Regarding my server connection: I can't help you there, my ISP has only had one incident of downtime I've noticed in the seven years of being with them.

Regarding my client connection while away from home: If my client doesn't have a connection, cloud services don't work any better. But a lot of apps (e.g. bitwarden, some jellyfin clients, etc) are smart enough to work offline to some extent via operating on cashed resources.

Re: My self-hosting infrastructure, fully automated

#209

Earlier quoted context omitted.

I've used everything under the sun and for homelab use IMO nothing beats using docker-compose and salt. 1. Unless you have crazy dynamic scaling needs, there's literally no point in using k8s or nomad 2. Unless you want RBAC and fine tuned ACL, theres literally no point in using k8s or Nomad I hate this idea that you need a Ceph cluster and a 3 node HA cluster to have a home lab. Not saying don't do it because you wa…

I was settled on Docker-Compose and Ansible for a long time, and while it was indeed quite easy to use once everything was tweaked correctly, what finally got me to move to k8s was HA. Having a single node with nginx, DNS resolution and Unifi controller running on it meant if I ever took the node down down for something, everything broke. Plex being down because I wanted to play with something unrelated wasn't ideal.…

Unifi controller isn't a dependency for your network to continue working. Config is distributed to the devices themselves, the controller is just a UI and collector of data.

Re: My self-hosting infrastructure, fully automated

#210

Earlier quoted context omitted.

do you use k3s in production as well ?

Is production == my day job? If so we don't, we use managed Kubernetes (we used to manage our own clusters but they will be decommissioned soon).

Can you go into the reasons you went to managed vs self owned K8S?
Post reply on HN