I found this subnet one day to get the private ip of a unit:
juju run $_juju_model_arg --unit <APP_NAME>/leader 'unit-get private-address'
But do you know a way to get the VIP(s) of an application when scaled to HA using the hacluster Charm ??
I tried this :
juju run $_juju_model_arg --unit <APP_NAME>-hacluster/leader 'unit-get private-address'
But then, I get the private address of the master application from which hacluster is a subordinate.
Any idea ?