Live data from Hacker News

Domesticating Kubernetes

blog.quickbird.uk

11–20 of 100 posts

Re: Domesticating Kubernetes

#11

Or... you could just install a Docker swarm in 10 minutes https://www.bretfisher.com/10-minutes-to-highly-available-do... No good reasons to use K8s outside multi-team enterprise stateful multi-tier architectures.

...over simpler approaches, I should qualify.

Re: Domesticating Kubernetes

#12

I think what type of k8s environment you use very much depends on what you're looking to get out of it. If it's experience deploying applications into containerized environments, then micro-k8s and k3s seem like reasonable choices, you don't really care about the setup of the underlying components, just that they present the k8s API. If you're looking for experience of managing k8s clusters, then either the distribut…

> if you're looking for something to run your home services long term, I would recommend not using Kubernetes

If we disregard one’s experience with Kubernetes as a factor, are there any other reasons you see to not use k8s at home?

Re: Domesticating Kubernetes

#14

Or... you could just install a Docker swarm in 10 minutes https://www.bretfisher.com/10-minutes-to-highly-available-do... No good reasons to use K8s outside multi-team enterprise stateful multi-tier architectures.

Kubernetes provides a standard way to deploy applications. If I’m familiar with deploying applications on Kubernetes at work, why not have the same for my side projects at home?

Re: Domesticating Kubernetes

#15
post #4

What I miss from all of these tutorials is one very important piece - how to handle network routing and dns automation within your home network, that's in typical scenario is being handled by the ingress/cloud controller. Without having automated (or easy enough) way of reaching the apps you're deploying there, each of these clusters is pretty much useless for users except for maybe learning basics of k8s, what's eas…

I use dynamic DNS with my Edgemax router. Something like inlets operator or cloudflare Argo are other options.

I think the OP might be more asking about how to get local DNS automatically provisioned with the IP address of a service/container that has been deployed to the LAN.

Re: Domesticating Kubernetes

#16

I think what type of k8s environment you use very much depends on what you're looking to get out of it. If it's experience deploying applications into containerized environments, then micro-k8s and k3s seem like reasonable choices, you don't really care about the setup of the underlying components, just that they present the k8s API. If you're looking for experience of managing k8s clusters, then either the distribut…

> if you're looking for something to run your home services long term, I would recommend not using Kubernetes If we disregard one’s experience with Kubernetes as a factor, are there any other reasons you see to not use k8s at home?

Do you really have that many computers at home, so you need container orchestration for that? A single machine is capable of handling most home workloads.

So outside of playing with Kubernetes for experience, why would you do that?

Re: Domesticating Kubernetes

#17
post #4

What I miss from all of these tutorials is one very important piece - how to handle network routing and dns automation within your home network, that's in typical scenario is being handled by the ingress/cloud controller. Without having automated (or easy enough) way of reaching the apps you're deploying there, each of these clusters is pretty much useless for users except for maybe learning basics of k8s, what's eas…

Few things to do:

- specify a LAN IP for your ingress controller so it doesn't change.

- Use ddwrt/dnsmasq to point *.k8s.myhomenetwork.local to said IP

Once that's configured, you just configure the ingress hostname on services as you would "normally".

Re: Domesticating Kubernetes

#18

I think what type of k8s environment you use very much depends on what you're looking to get out of it. If it's experience deploying applications into containerized environments, then micro-k8s and k3s seem like reasonable choices, you don't really care about the setup of the underlying components, just that they present the k8s API. If you're looking for experience of managing k8s clusters, then either the distribut…

> if you're looking for something to run your home services long term, I would recommend not using Kubernetes If we disregard one’s experience with Kubernetes as a factor, are there any other reasons you see to not use k8s at home?

complexity and overhead. Maintaining Kubernetes is non-trivial (IMO ofc). It has a 9 month support lifecycle, so you need to redeploy everything regularly. There are also API deprecations to deal with periodically, which if you're not keeping up with k8s developments, could be disruptive.

From a complexity perspective, you're adding more places for things to break. Instead of (say) running your apps in containers with Docker, you add pods, services and ingress as layers, which is more places for things to go wrong.

Re: Domesticating Kubernetes

#19

Earlier quoted context omitted.

I use dynamic DNS with my Edgemax router. Something like inlets operator or cloudflare Argo are other options.

I think the OP might be more asking about how to get local DNS automatically provisioned with the IP address of a service/container that has been deployed to the LAN.

That's exactly what I meant. I know how to do it myself, but then again I'm not the target for these articles, but when I read them with the mindset of someone who is supposed to have a use of them, that's always the big missing bit for me.

Re: Domesticating Kubernetes

#20

Happy to see this. I think more orgs should be running more on-prem or colocated in a data center somewhere. Public clouds can be a rip off for larger projects

There’s a massive difference between running a Kubernetes setup, like the one in the article, for you home lab, and the attempting to run Kubernetes on-prem for a business. I would recommend against the latter, unless your sure you can afford it, in term of staffing.
Post reply on HN