How to configure DNS_PING work with kubernetes StatefulSet

12/7/2018

I would like to setup an inifinispan cluster in a kubernetes environment.

DNS_PING is the discovery protocol. It works with pod deployed with DeploymentConfig settings. However, when we switch the settings from DeploymentConfig to StatefulSet, it does not work.

It is because we cannot query the IP of a pod directly with its name (pod name), but with (pod name).(headless service created) pattern.

jgroups is new to me. Appreciate if anyone may suggest us how to configure the DNS_PING properly for this scenario. Many thanks.

-- William Wong
dns
infinispan
jgroups
kubernetes

0 Answers