我正在 Kubernetes 集群中测试 wso2is-5.12.0-beta3 的部署,并根据文档将下面提到的 hazelcast 配置添加到了 deployment.toml 中。
https://is.docs.wso2.com/en/5.11.0/setup/deployment-guide/#!
服务器启动后,我收到以下异常。
高度赞赏解决此问题的方向。 预先感谢。
[clustering]
membership_scheme = "kubernetes"
local_member_host = "$env{LOCAL_MEMBER_HOST}"
local_member_port = "4000"
[clustering.properties]
KUBERNETES_NAMESPACE = "<namespace>"
KUBERNETES_SERVICES = "<service>"
[] ERROR {Events.Framework} - FrameworkEvent ERROR java.lang.RuntimeException: Cannot initialize cluster
Caused by: org.apache.axis2.clustering.ClusteringFault: Invalid membership scheme 'kubernetes'. Supported schemes are multicast, wka & aws
如果我们没有在
deployment.toml
中配置成员资格模式类路径,则有可能发生上述错误。在您的环境中添加以下配置并重新启动
[clustering]
membership_scheme = "kubernetes"
local_member_host = "172.17.0.2"
local_member_port = "4000"
[clustering.properties]
membershipSchemeClassName = "org.wso2.carbon.membership.scheme.kubernetes.KubernetesMembershipScheme"
KUBERNETES_NAMESPACE = "<namespace>"
KUBERNETES_SERVICES = "<service>"
KUBERNETES_MASTER_SKIP_SSL_VERIFICATION = true
USE_DNS = false