added optional extra IP for the api server certificates
This commit is contained in:
parent
40407930d5
commit
b5fbced5b3
2 changed files with 8 additions and 0 deletions
|
@ -14,6 +14,11 @@ bin_dir: /usr/local/bin
|
|||
## but don't know about that address themselves.
|
||||
#access_ip: 1.1.1.1
|
||||
|
||||
## The kube_apiserver_ext_ip is only used when generating the certificate protecting the apiservers
|
||||
## This is handy in case you want/have to access the apiserver through an external IP
|
||||
## that is not routable inside the cluster.
|
||||
## kube_apiserver_ext_ip: 10.10.10.10
|
||||
|
||||
### LOADBALANCING AND ACCESS MODES
|
||||
## Enable multiaccess to configure etcd clients to access all of the etcd members directly
|
||||
## as the "http://hostX:port, http://hostY:port, ..." and ignore the proxy loadbalancers.
|
||||
|
|
|
@ -26,3 +26,6 @@ IP.{{ 2 * loop.index }} = {{ hostvars[host]['ip'] | default(hostvars[host]['ansi
|
|||
{% set idx = groups['kube-master'] | length | int * 2 + 1 %}
|
||||
IP.{{ idx }} = {{ kube_apiserver_ip }}
|
||||
IP.{{ idx + 1 }} = 127.0.0.1
|
||||
{% if kube_apiserver_ext_ip is defined %}
|
||||
IP.{{ idx + 2 | string }} = {{ kube_apiserver_ext_ip }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue