Why does the pods hostname don't resolve?
The problem in fact was due to the firwall on my centos hosts, i disabled the firewall and the names started resolving.
I think you should use a full service domain instead of invoice-mysql
. Can you try using invoice-mysql.Jhipster.svc.cluster.local
instead?