Add external_ip variable 50/95750/1
authorMichal Zegan <m.zegan@samsung.com>
Mon, 16 Sep 2019 15:23:04 +0000 (17:23 +0200)
committerMichal Zegan <m.zegan@samsung.com>
Mon, 16 Sep 2019 16:06:27 +0000 (18:06 +0200)
Adds the external_ip variable that can be used to set ip different
from cluster_ip, like public/floating/elastic ip, that can be used to externally
communicate with kubernetes nodes. Mainly useful
for the control plane and communication with
api server.

Change-Id: Ie840bff4b8479081b7397a42935c9db53db1bf4f
Issue-ID: OOM-2112
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
ansible/inventory/hosts.yml

index 4a6b68c..825ee3b 100644 (file)
@@ -33,6 +33,10 @@ all:
               ansible_host: 10.8.8.19
               #ip of the node that it uses for communication with k8s cluster.
               cluster_ip: 10.8.8.19
+              # External ip of the node, used for access from outside of the cluster.
+              # Can be set to some kind of floating or public ip.
+              # If not set, cluster_ip is used for this purpose.
+              # external_ip: x.x.x.x
 
         # Group of hosts containing etcd cluster nodes.
         # Defaults to infra.
@@ -44,7 +48,7 @@ all:
         # This means they host kubernetes api server, controller manager and scheduler.
         # This example uses infra for this purpose, however note that any
         # other host could be used including kubernetes nodes.
-        # cluster_ip needs to be set for hosts used as control planes.
+        # cluster_ip needs to be set for hosts used as control planes, external_ip can also be used.
         kubernetes-control-plane:
           hosts:
             infrastructure-server