c12s-kubespray/roles/kubernetes
Steven Hardy d39a88d63f Allow setting --bind-address for apiserver hyperkube (#1985)
* Allow setting --bind-address for apiserver hyperkube

This is required if you wish to configure a loadbalancer (e.g haproxy)
running on the master nodes without choosing a different port for the
vip from that used by the API - in this case you need the API to bind to
a specific interface, then haproxy can bind the same port on the VIP:

root@overcloud-controller-0 ~]# netstat -taupen | grep 6443
tcp        0      0 192.168.24.6:6443       0.0.0.0:*               LISTEN      0          680613     134504/haproxy
tcp        0      0 192.168.24.16:6443      0.0.0.0:*               LISTEN      0          653329     131423/hyperkube
tcp        0      0 192.168.24.16:6443      192.168.24.16:58404     ESTABLISHED 0          652991     131423/hyperkube
tcp        0      0 192.168.24.16:58404     192.168.24.16:6443      ESTABLISHED 0          652986     131423/hyperkube

This can be achieved e.g via:

kube_apiserver_bind_address: 192.168.24.16

* Address code review feedback

* Update kube-apiserver.manifest.j2
2017-11-29 15:24:02 +00:00
..
client Defaults for apiserver_loadbalancer_domain_name (#1993) 2017-11-23 16:15:48 +00:00
kubeadm Fix bad handler directory name in kubeadm role 2017-11-01 14:36:28 +01:00
master Allow setting --bind-address for apiserver hyperkube (#1985) 2017-11-29 15:24:02 +00:00
node contiv network support (#1914) 2017-11-29 14:24:16 +00:00
preinstall contiv network support (#1914) 2017-11-29 14:24:16 +00:00
secrets Defaults for apiserver_loadbalancer_domain_name (#1993) 2017-11-23 16:15:48 +00:00