Hazelcast Client in DNS LookUP mode in Kubernetes

591 views
Skip to first unread message

Vishnu K Raj

unread,
Oct 4, 2019, 6:40:05 AM10/4/19
to Hazelcast
I can see that in the hazelcast server side there is an option to use either the kubernetes API or DNS LookUP. I have used DNS Lookup and it is working. But while configuring the client I can't find an example of using DNS Lookup, all scenarios are using the Kubernetes API. Does hazelcast client support dns lookup mode?

Rafal Leszko

unread,
Oct 7, 2019, 4:40:13 AM10/7/19
to haze...@googlegroups.com
Hi Vishnu,

Yes, Hazelcast Kubernetes Plugin supports DNS Lookup for clients. Please keep-in mind that it'll work only if the client is deployed on the same Kubernetes cluster as the Hazelcast server.

Sample configuration YAML:
hazelcast-client:
  network:
    kubernetes:
      enabled: true
      service-dns: MY-SERVICE-DNS-NAME

On Fri, Oct 4, 2019 at 12:40 PM Vishnu K Raj <vishn...@cleartrip.com> wrote:
I can see that in the hazelcast server side there is an option to use either the kubernetes API or DNS LookUP. I have used DNS Lookup and it is working. But while configuring the client I can't find an example of using DNS Lookup, all scenarios are using the Kubernetes API. Does hazelcast client support dns lookup mode?

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/64c88ada-1ca5-401d-b1bb-636c182e6cb3%40googlegroups.com.


--
Rafał Leszko
Software Engineer
@RafalLeszko

ivin...@gmail.com

unread,
Mar 30, 2020, 5:19:17 PM3/30/20
to Hazelcast
I am getting the follwing exeption while trying the DNSlookup.
any idea?
spec.clusterIP: Invalid value: "None": field is immutable
when i am trying the DNS

Rafal Leszko

unread,
Mar 31, 2020, 3:20:15 AM3/31/20
to haze...@googlegroups.com
It looks like more related to the Kubernetes configuration, not Hazelcast itself.

My guess is that you try to update existing service and change its clusterIP, but you can't do it because clusterIP cannot be updated (it's immutable in the Kubernetes service resource). 
So you need to:
1) delete the service 
2) create it again with a different clusterIP

Cheers,
Rafał

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.


--

Rafał Leszko
Software Engineer
   hazelcast®
 
 


This message contains confidential information and is intended only for the individuals named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required, please request a hard-copy version. -Hazelcast
Reply all
Reply to author
Forward
0 new messages