Docker Swarm with High Availability (almost!)

preview_player
Показать описание
Automated Docker Swarm deployment with GlusterFS
Рекомендации по теме
Комментарии
Автор

I started using Docker years ago on a single Synology NAS, but then I ran out of RAM. So last year I got three old desktops that I'm using as Proxmox servers. First idea and try was to put K3s on these, but same issue, not enough memory on each machine. And also, Kubernetes is just overly complicated and overkill for home users not trying to learn this stuff for their work in IT. Swarm is indeed a good middle-ground: easy and less resources requiring (well compared to when you add Rancher and Longhorn to K8s). Also ended up using GlusterFS for volume synchronization as opposed to using Ceph (I still have not figured how latter works...). The only thing that is complicated in a GlusterFS setup is how to easily do backups of that. I'll maybe try again some day K3s when I get new machines with more RAM but for now I'm satisfied with Swarm even though it's a living-dead.

jp_baril
Автор

Yeah you install Portainer outside of the cluster then to environments. Portainer will give you an agent script. Excecute this on each node so that Portainer sees the Cluster.

youroldmangaming
Автор

Works fine in Debian. Are you sure Ubuntu is production ready :-) ?

youroldmangaming
Автор

Any updates on this issue? I’m having the same with Proxmox and Ubuntu 22.04 running docker swarm

chris
Автор

hmmm, I am using ubuntu 23.10 and have portioner running on docker swarm and I am able to connect to it using all 3 manager nodes ip's or am I wrong with what I heard about the issues you were having

lordnikon
Автор

I personally also tried k3s and k8s. Too much unnecessary complexity and overkill for my use cases. I currenly run docker swarm on some servers. In production. And it just works. I also have dedicated backup servers. I have one more swarm manager and worker in a proxmox server for further HA.
My and clients' 22 production/live web sites and apps all run from a single diy highly customized php mvc app, with nginx web server, traefik, memcache, mariadb, nfs, etc. All on the latest ubuntu server 24.04 (recently upgraded). Also portainer, uptime kuma, grafana, proxmox, opnsense, etc.
My physical machines? 4 raspberry pi 4b 8gb. 10 odroid xu4 8 core cpu 2gb ram each. 3 lenovo m720q tiny with i5 cpu 32gb ram each. 3 hp elitedesk 800 g5 i5 32gb ram. Humble.
I love swarm's simplicity and speed. It just works. I dont think i will ever need kubernetes or k3s. Time will tell.

lesleyrichards
Автор

Docker Swarm is perfectly functional and I think it's a shame that you give it the image of something "dead" when even large companies like the Royal Bank of Canada are using it in production. What's more, I think it's much more appropriate than Kubernetes for a homelab. It's because of this kind of stance that everyone has turned to Kubernetes and found themselves wasting phenomenal energy on setups that would be equivalent under Swarm and much simpler to implement.

jonisapp