Istio是否支持hazelcast-kubernetes? [英] Does Istio support hazelcast-kubernetes?

查看:56
本文介绍了Istio是否支持hazelcast-kubernetes?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 istio-demo-auth .yaml中使用 istio 1.0.2版本 在k8s集群环境中使用了 hazelcast-kubernetes .

I am using istio 1.0.2 version with istio-demo-auth.yaml, and I used hazelcast-kubernetes in the k8s cluster environment.

以前,我在k8s集群中使用hazelcast-kubernetes,在扩展两个hazelcast-kubernetes StatefulSet时,它们可以连接在一起并使用我的服务.那个时候不使用istio.

I was using hazelcast-kubernetes in the k8s cluster before, when scale two hazelcast-kubernetes StatefulSet, they can join together, and working with my services. Not using istio that time.

最近,我们的服务注入了istio.我尝试向istio注入hazelcast-kubernetes,它正在运行,但是这两个hazelcast-kubernetes无法连接在一起.

Recently our services injected with istio. I try to inject the hazelcast-kubernetes with istio, it was running, but those two hazelcast-kubernetes cannot join together.

您知道如何使用istio配置hazelcast-kubernetes吗?谢谢.

Do you know how to configure with istio for hazelcast-kubernetes? Thanks.

infor消息如下:

The infor message was like below:

INFO:[172.50.3.67]:5701 [dev] [3.10.3]在/127.0.0.1:5701和/127.0.0.1:57308之间建立了套接字连接 2018年11月28日9:30:03 com.hazelcast.nio.tcp.TcpIpConnection
INFO:[172.50.3.67]:5701 [dev] [3.10.3] Connection [id = 321,/127.0.0.1:5701->/127.0.0.1:57308、endpoint=null、alive=false、type=NONE]关闭.原因:对方关闭了连接

INFO: [172.50.3.67]:5701 [dev] [3.10.3] Established socket connection between /127.0.0.1:5701 and /127.0.0.1:57308 Nov 28, 2018 9:30:03 AM com.hazelcast.nio.tcp.TcpIpConnection
INFO: [172.50.3.67]:5701 [dev] [3.10.3] Connection[id=321, /127.0.0.1:5701->/127.0.0.1:57308, endpoint=null, alive=false, type=NONE] closed. Reason: Connection closed by the other side

推荐答案

Istio的工作原理是使用防火墙规则限制网络连接,以强制流量通过网状网络. (当前)这是基于kubernetes服务而不是具体的Pod.

Istio works by limiting the network connectivity using firewall rules to force traffic through the mesh network. This is (currently) based on kubernetes services not concrete pods.

Hazelcast尚不能在istio上使用,根据: https://groups.google.com/forum/#! topic/istio-users/d-THsO19oAM

Hazelcast should not work with istio yet, according to: https://groups.google.com/forum/#!topic/istio-users/d-THsO19oAM

尽管我认为将来会以某种方式解决此问题,因为许多支持群集的项目(如数据库)使用某种直接通信来同步其事件/数据.

Although I assume that this will be tackled in some way in the future, because many cluster-enabled projects like databases use some kind of direct communication to sync their events/data.

如果您将hazelcast作为专用服务而不是嵌入式服务运行,则可能要尝试在没有istio边车的情况下运行这些服务,因此它们使用常规的kubernetes网络并从istio增强的服务连接到该服务.那应该是可能的.

If you are running hazelcast as dedicated services and not embedded, you might want to try to run these without istio sidecars, so they use the regular kubernetes networking and connect from your istio-enhanced services to that. That should be possible.

更新

它现在应该可以工作: https://github.com/hazelcast/hazelcast- kubernetes/issues/118

It should work now: https://github.com/hazelcast/hazelcast-kubernetes/issues/118

这篇关于Istio是否支持hazelcast-kubernetes?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆