Use external_ip to populate the node address 51/95751/1
authorMichal Zegan <m.zegan@samsung.com>
Mon, 16 Sep 2019 15:28:38 +0000 (17:28 +0200)
committerMichal Zegan <m.zegan@samsung.com>
Mon, 16 Sep 2019 16:06:30 +0000 (18:06 +0200)
commit1bb11f154f93fa9ddb6d2fa8281e104a2157ded5
tree3b5445ec96f09eff02e5dfe84f7c652aad5f86af
parent57d0a3db94041a13e3176ce919a68f7845454099
Use external_ip to populate the node address

Use the new external_ip inventory variable to populate node address.
Note that cluster_ip is still used if external_ip has not been set.
This makes it possible to connect to kubernetes apiserver using the external_ip
without disabling ssl cert verification.
As an added bonus, the inventory hostname is now used as the node name to make
node names more predictable.

Change-Id: I3cc25c488d68f2f858a5eb3438d96285fa7517ca
Issue-ID: OOM-2112
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
ansible/roles/rke/templates/cluster.yml.j2