dwyl / learn-devops

🚧 Learn the craft of "DevOps" (Developer Operations) to Deploy your App and Monitor it so it stays "Up"!
GNU General Public License v2.0
418 stars 172 forks source link

`K3s` #99

Open nelsonic opened 2 weeks ago

nelsonic commented 2 weeks ago

While learning about Kamal #96 I cannot help but think it's similar to - but simpler than - K3s https://docs.k3s.io -> https://github.com/k3s-io/k3s 🔗

So the question is: is it worth using K3s over Kamal? 🧑‍💻 🤷‍♂️

In my mind, the only reason to use K3s or K8s is to conform to expected norm. 🫤 Not saying they are bad, obviously not, just that in most cases they are overkill. 🔨 🥜

Related to: https://github.com/dwyl/learn-devops/issues/57

nelsonic commented 1 week ago

Busy watching: K3S (by Rancher) | Setup a lightweight Kubernetes Cluster in Minutes: https://youtu.be/1hwGdey7iUU

image

it's the end of the day and my brain is fried. 😫

nelsonic commented 1 week ago

Reading https://containerd.io https://github.com/containerd/containerd

nelsonic commented 1 week ago

The repo listed in the video: https://gitlab.com/cloud-versity/rancher-k3s-first-steps

nelsonic commented 1 week ago

menitioned: https://nip.io https://github.com/exentriquesolutions/nip.io

nelsonic commented 1 week ago

That K3S intro was good but not complete ... So going through this video now: HIGH AVAILABILITY k3s (Kubernetes) in minutes! https://youtu.be/UoOcLXfa8EU

image
nelsonic commented 1 week ago

https://microk8s.io -> https://github.com/canonical/microk8s 🙃

nelsonic commented 1 week ago

RKE2: One-Click Deployment - Time To Switch From K3S!? https://youtu.be/RC7NeTh-cf8

nelsonic commented 1 week ago

https://docs.rke2.io/

nelsonic commented 6 days ago

Read through: https://www.digitalocean.com/community/tutorials/how-to-deploy-postgres-to-kubernetes-cluster the editorial at DigitalOcean should read the comments ...

image

So bit of a dead-end. 🤦‍♂️

nelsonic commented 6 days ago

DON'T Learn Kubernetes - Do THIS Instead: https://youtu.be/tJowdD9cSaU 📺 wasted 10 mins on it as didn't learn anything new. ⏳ 🔥 But agree that Kubernetes is very over-complicated for our needs. 😕

nelsonic commented 6 days ago

https://github.com/rancher/rke2

nelsonic commented 1 day ago

@ndrean noticed on your profile that you have a a K8s logo in your Toolbox:

ndrean-github-profile-k8s

Where/how did you learn K8s and are you using it for any current projects? 💭 🙏

ndrean commented 1 day ago

@nelsonic I learned Kubernetes because I participated to https://www.grucloud.com/ . It is about IAC. I provided a test app to query the K8 API and get the status of running pods in a context of micro services : https://github.com/ndrean/docker-slim/tree/gcloud. Some notes along the road: https://dev.to/ndrean/rails-on-kubernetes-with-minikube-and-tilt-25ka.

Now, using k8 is SUPER expensive, so few would really use it, but it is good to build your app with scaling in mind, in terms of so-called micro-service.

nelsonic commented 1 day ago

Yeah, we have used K8s @ work where the budget is unlimited. 💸 🙄 But for a small co/project it feels like overkill. 💭 🔥 Thanks for sharing links. 🔗👌

ndrean commented 1 day ago

If you really want to auto-scale your images, instead of a DIY-k8, you probably know AWS EKS or ECS, easier. Are you after an Elixir based project?

ndrean commented 19 hours ago

If you are in particular interested in OTP+k8, I took the opportunity to sum up a bit of literature on "k8-clustering" your "OTP-cluster".

❗ Everything below is nice locally, playing with Minikube or kind or k3d or k8 on Docker desktop), but IRL its another story when you add RBAC, migrations.... The tool Tilt is super useful to automate things when developing. I only deployed IRL using ECS

The key problems:

0) Corry Daniel is "solid"

https://github.com/coryodaniel/k8s

1) Michael Ruoss developed a library for Livebook

Screenshot 2024-11-18 at 11 25 09

2) Daniel Azuma talked about

The blog source: https://daniel-azuma.com/articles/talks/elixirconf-2018

and the link to the video below: Screenshot 2024-11-18 at 11 19 08

3) In the same spirit: https://engineering.dollarshaveclub.com/elixir-otp-applications-on-kubernetes-9944636b8609

4) Use Livebook to connect to your "kuberneted" OPT cluster

Livebook documentation clustering

The link: Screenshot 2024-11-18 at 11 31 00

5) A blog post using K8 in Docker desktop:

The link: Screenshot 2024-11-18 at 11 41 26

And the companion repo