Consul k8s for stateful sets

Hi everyone,

is it possible to use consul with stateful sets such as elasticsearch helm. Or does it only work with deployment where it does not matter which instance the request is routed to?

Thanks in advance.


Are you talking about using Consul connect to talk to elastic search? We need to do more investigation to see if this is possible. Please follow for updates.

yeah, basically using consul connect to proxy the communication between the elasticsearch master nodes which by default uses a headless service.

The solution we use right now is to use native elasticsearch encryption and certificates to secure communication between the master nodes and use consul connect to secure the commucation from grafana/fluentd to elasticsearch.