Live data from Hacker News

K3s – Lightweight Kubernetes

k3s.io

131–140 of 194 posts

Re: K3s – Lightweight Kubernetes

#131

Technically speaking: cool Practically speaking: I worry this will become a parallel but subtlety different implementation of Kubernetes with it's own quirks.

> Practically speaking: I worry this will become a parallel but subtlety different implementation of Kubernetes with it's own quirks.

Hello, we're already there. Despite the CNCF certification process, there are many flavours of k8s, all with their own quirks. Being on the product side, it is quite painful to support.

Re: K3s – Lightweight Kubernetes

#132

Oh nice - this is by the Rancher guys. Would love to compare this not with k8s, but with Docker Swarm. Docker Swarm on Raspberry Pi is a very common thing. So, from a performance perspective, these are on par. Another question is around ingress and network plugin - is it a seamless "batteries included" experience ? Because these are two of the biggest pains in k8s to decide and setup .

It includes the flannel network plugin by default (although you can change this) and a basic service load balancer (technically not an ingress, but providing the same functionality). From the README:

> k3s includes a basic service load balancer that uses available host ports. If you try to create a load balancer that listens on port 80, for example, it will try to find a free host in the cluster for port 80. If no port is available the load balancer will stay in Pending.

Re: K3s – Lightweight Kubernetes

#133
post #3

This is extremely welcome. Kube needs to glom on to all available architectures to fulfill its destiny, to some extent, and the memory/cpu usage of kubeapi et al. can be prohibitive for small setups. Having to revert to ansible/systemd in "some cases" really weakens the story of a universal datacenter O/S. My hope is for more competition for development k8s (or k3s!) - minikube and docker-for-desktop is plagued with…

Agreed. Kubernetes (installed via kubeadm) on 1 GB of RAM is a shaky proposition at best; I've been managing a cluster on Raspberry Pis and the master often hits swap managing three Nodes with a dozen or so Pods.

K8s doesn’t support swap, you have to disable swap to even run kubelet.

Re: K3s – Lightweight Kubernetes

#134
post #49

Earlier quoted context omitted.

In terms of etcd3 vs sqlite3, it is as reliable as most airplane systems that depend on it. https://www.sqlite.org/famous.html I think the "high availability by redundancy" story is oversold.

Alternatively the K3s authors could have embedded a single node etcd process into Kubernetes using the embed package instead of introducing sqlite. https://godoc.org/github.com/etcd-io/etcd/embed This is something the Kubernetes community might consider as well.

Yeah, OpenShift did this from the very first version. It worked pretty well. Memory use was very reasonable from etcd 3.0 on.

Re: K3s – Lightweight Kubernetes

#136

Earlier quoted context omitted.

No, for the same reason that Martin Fowler argues you should start with a monolith first before moving to a microservices architecture.

What is currently a good alternative for a small business who needs to distribute containers on a handful of nodes? Docker swarm mode?

Docker swarm, Consul+Nomad, AWS Fargate, Azure ACS, Google GCP, etc. Even DC/OS+Marathon is probably simpler. If you really think you need K8s, use a managed service provider like GKE, AKS, or a platform manager like Rancher. You need to pay a specialized company to build and operate it for you, or you aren't going to have a fun time.

I highly recommend leveraging AWS, Google, Azure, etc services. Especially if you're a small business, spending a little for off the shelf tools that someone else operates and supports is going to help you big time.

Re: K3s – Lightweight Kubernetes

#137
post #3

This is extremely welcome. Kube needs to glom on to all available architectures to fulfill its destiny, to some extent, and the memory/cpu usage of kubeapi et al. can be prohibitive for small setups. Having to revert to ansible/systemd in "some cases" really weakens the story of a universal datacenter O/S. My hope is for more competition for development k8s (or k3s!) - minikube and docker-for-desktop is plagued with…

Agreed. Kubernetes (installed via kubeadm) on 1 GB of RAM is a shaky proposition at best; I've been managing a cluster on Raspberry Pis and the master often hits swap managing three Nodes with a dozen or so Pods.

What workloads are you running? With only 1gb, have you looked into setting resource limits for your pods?

Re: K3s – Lightweight Kubernetes

#138

"Added sqlite3 as the default storage mechanism. etcd3 is still available, but not the default." I want to use and support this product for this reason alone. Etcd was always an un-necessary complexity added for god knows what reason. Later cluster management solutions have abstracted etcd creation and management away (thankfully), but it's always irksome that it is there. Thank you to the K3s development team for ta…

As a someone that used etcd during v1 times (CoreOS + Fleet) I can only agree. I am not that familiar with etcd3 but v1 and v2 were horrible: difficult to tune and find a working set of "timeout" parameters, picky to CPU availability, developers giving zero f*cks to bugs/docs, crappy documentation, and good luck if you lose quorum.
Post reply on HN