Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K3s #99

Open
nelsonic opened this issue Nov 4, 2024 · 16 comments
Open

K3s #99

nelsonic opened this issue Nov 4, 2024 · 16 comments

Comments

@nelsonic
Copy link
Member

nelsonic commented Nov 4, 2024

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: #57

@nelsonic
Copy link
Member Author

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
Copy link
Member Author

@nelsonic
Copy link
Member Author

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

@nelsonic
Copy link
Member Author

@nelsonic
Copy link
Member Author

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
Copy link
Member Author

@nelsonic
Copy link
Member Author

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

@nelsonic
Copy link
Member Author

https://docs.rke2.io/

@nelsonic
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

@nelsonic
Copy link
Member Author

@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
Copy link

ndrean commented Nov 17, 2024

@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
Copy link
Member Author

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
Copy link

ndrean commented Nov 17, 2024

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
Copy link

ndrean commented Nov 18, 2024

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:

  • how do you spread/maintain state (websockets and genservers) on eg rolling update (Hot code reload or new deployment)
  • how to you spread DB migrations?
  1. 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

  1. 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

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

  2. Use Livebook to connect to your "kuberneted" OPT cluster

Livebook documentation clustering

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

  1. A blog post using K8 in Docker desktop:

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

And the companion repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants