我正在考虑运行 docker swarm(见下面的版本)或 Kubernetes。
是否可以在服务中附加或设置静态 IP 地址?
我正在寻找一种在容器中运行多个网站的方法:
我知道在 Docker Swarm 中,您可以让 Ingress 网络层填充每个节点的 80 端口。但这仅适用于一个 IP 地址。我想连接到运行不同网站的不同容器的更多 IP 地址是什么?
码头工人版本:
Client:
Version: 17.11.0-ce
API version: 1.34
Go version: go1.8.3
Git commit: 1caf76c
Built: Mon Nov 20 18:37:39 2017
OS/Arch: linux/amd64
Server:
Version: 17.11.0-ce
API version: 1.34 (minimum version 1.12)
Go version: go1.8.3
Git commit: 1caf76c
Built: Mon Nov 20 18:36:09 2017
OS/Arch: linux/amd64
Experimental: false
我发现 Kubernetes 可以完成这项任务:https ://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句