Fix if bind-address is not set to 0.0.0.0 (#8262)

* if bind-address is not set to 0.0.0.0

* Update docs and left comments

* fix yamllist check: remove space
This commit is contained in:
Hanna Bledai
2021-12-06 10:58:32 +03:00
committed by GitHub
parent 46b1b7ab34
commit 615216f397
4 changed files with 17 additions and 9 deletions

View File

@@ -19,7 +19,7 @@
- import_tasks: loadbalancer/nginx-proxy.yml
when:
- not is_kube_master
- not is_kube_master or kube_apiserver_bind_address != '0.0.0.0'
- loadbalancer_apiserver_localhost
- loadbalancer_apiserver_type == 'nginx'
tags:
@@ -27,7 +27,7 @@
- import_tasks: loadbalancer/haproxy.yml
when:
- not is_kube_master
- not is_kube_master or kube_apiserver_bind_address != '0.0.0.0'
- loadbalancer_apiserver_localhost
- loadbalancer_apiserver_type == 'haproxy'
tags: