DEV Community

Discussion on: Building a headless service in Kubernetes

Collapse
 
patelvishalj profile image
Vishal Patel

Nice explaination. I just want to add one practicle example where I am usingn headless service. Have redis cluster with sentinel mode and using java service with redission lib to connect it. Connection string to redission needs all : of redis-sentinel pods.

As Redis cluster is being deployed in kubernetes, a headless service to sentinel nodes is craeted and connections string refers headless service.