Open nelsonic opened 2 weeks ago
Busy watching: K3S (by Rancher) | Setup a lightweight Kubernetes Cluster in Minutes: https://youtu.be/1hwGdey7iUU
it's the end of the day and my brain is fried. 😫
The repo listed in the video: https://gitlab.com/cloud-versity/rancher-k3s-first-steps
That K3S intro was good but not complete ... So going through this video now: HIGH AVAILABILITY k3s (Kubernetes) in minutes! https://youtu.be/UoOcLXfa8EU
RKE2: One-Click Deployment - Time To Switch From K3S!? https://youtu.be/RC7NeTh-cf8
Read through: https://www.digitalocean.com/community/tutorials/how-to-deploy-postgres-to-kubernetes-cluster the editorial at DigitalOcean should read the comments ...
So bit of a dead-end. 🤦♂️
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. 😕
@ndrean noticed on your profile that you have a a K8s
logo in your Toolbox:
Where/how did you learn K8s
and are you using it for any current projects? 💭 🙏
@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.
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. 🔗👌
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?
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
2) Daniel Azuma talked about
The blog source: https://daniel-azuma.com/articles/talks/elixirconf-2018
and the link to the video below:
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
5) A blog post using K8 in Docker desktop:
And the companion repo
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
overKamal
? 🧑💻 🤷♂️In my mind, the only reason to use
K3s
orK8s
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