我的笔记本电脑上运行着4个微服务,它们监听着各个端口。我可以使用Istio在笔记本电脑上创建服务网格,以便服务可以通过Istio相互通信吗? Google上有关Istio的所有链接都包含kubernetes,但我想在没有Kubernetes的情况下运行Istio。谢谢阅读。
最佳答案
实际上,由于撰写Istio的所有操作手册和指南几乎都适用于Kubernetes,因此实际情况并非如此。
从理论上讲,是的。 Istio组件被设计为'platform independent'。从文档引用:
While Istio is platform independent, using it with Kubernetes (or infrastructure) network policies, the benefits are even greater, including the ability to secure pod-to-pod or service-to-service communication at the network and application layers.
但是除非您真的非常了解每个组件的详细信息:Envoy,Mixer,Pilot,Citadel和Galley并且您愿意花很多时间使其在Kubernetes之外运行实际上是不可行的。
如果您想使用与Kubernetes无关的工具,可以看看Consul,尽管它不具备Istio的所有功能,但它与某些功能重叠。
关于kubernetes - 是否可以在没有kubernetes或docker的情况下使用Istio?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53014727/