= 小型 Docker 群裸机服务器设置 = ![ ](httpswww.redditstatic.com/desktop2x/img/renderTimingPixel.png) 我计划在三台裸机服务器上设置一个小型的生产就绪 Docker Swarm 集群。我希望获得个人帐户/反馈,了解他们在设置此类部署时遇到的困难和成功。 建议,例如使用什么操作系统、他们认为有用的模式、有用的链接等 提前致谢! RedHat 有很多文档和对 Podman 的支持,Podman 是 OCI 投诉的,适用于无根容器。也有可能在其中获得认证。他们还有专门设计为容器主机操作系统的 RedHat 原子构建。 但是,Ubuntu 有很多开发人员支持。取决于您觉得哪个方向更适合您的场景。 RedHat 还拥有最多 16 台服务器的免费自我支持许可证。如果您只是宁愿避免许可,您也可以使用 CentOS Stream 8 并在更新方面稍微领先于 RedHat 企业 linux。领先于更新有其优点和缺点。关于 RedHat,我最喜欢的一点是操作系统在架构方面仍然停滞不前。 Ubuntu 经常变化。 ** RedHat 8 容器指南(Podman httpsaccess.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/building_running_and_managing_containers/index#con_characteristics-of-podman-buildah-and-skopeo_assembly_starting-with-containers ** RedHat UBI8 指南,这是一个由 RedHat 开发的容器,用作构建的基础 httpscatalog.redhat.com/software/containers/ubi8-init/5c6aea74dd19c77a158f0892 我现在正在使用 ansible 开发一个 3-debian-node swarm swarm 部分相对简单,可以快速启动和运行 swarm 接管了 iptables,你通常的规则不再适用,你必须添加一些特殊的规则 如果你出于任何原因(重启等)排空一个节点,一旦它回来,用排空移动的复制容器不会自己回来,你可以 docker 服务更新 --forceone by one, but that wouldand redo/redistribute the containers, so some requests could be dropped the "hard" part is to set up your cluster-able services (reverse proxies, databases depends on what and how, and that's where you see that a lot of the same problems have been solved for Kubernetes (helper tools, plugins, documentation etc), with swarm you are on your own volumes aren't replicated, you might need glusterfs, nfs etc I’m planning on setting up 3 node clusters for Elasticsearch, RabbitMQ and MariaDB on these servers. We don’t want to use Kubernetes as we are far from experts in setting that up. I was reading that docker swarm will make the deployment easier, but you have brought up some addition issues I need to consider. Maybe going back a step, is it worth the complexity to add docker swarm to the tech stack or just manually setup everything using docker alone? == About Community == Members Online