I am running Elasticsearch cluster (2 master, 2 data and 1 voter) as docker containers behind a load balanced setup. F5 URL for that looks like https://myelastic.mycompany.com. I am also running Kibana container that connects to the elastic cluster. Kibana's F5 URL looks like https://mykibana.mycompany.com.
However I would like to use F5 URL in the "ELASTICSEARCH_HOSTS" instead of specific cluster instance url. The reason is I have 2 datacenters where the entire stack gets deployed. And for each datacenter, I had to manually update the above environment variable with the correct instance url and I am trying to find a solution to avoid it. Is this even possible?