Return back bind API server node loadbalancer to 127.0.0.1 for security purposes. (#4489)
This commit is contained in:
parent
5e0249ae7c
commit
3b9d13fda9
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ frontend healthz
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
frontend kube_api_frontend
|
frontend kube_api_frontend
|
||||||
bind *:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }}
|
bind 127.0.0.1:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }}
|
||||||
mode tcp
|
mode tcp
|
||||||
option tcplog
|
option tcplog
|
||||||
default_backend kube_api_backend
|
default_backend kube_api_backend
|
||||||
|
|
|
@ -19,7 +19,7 @@ stream {
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen {{ loadbalancer_apiserver_port|default(kube_apiserver_port) }};
|
listen 127.0.0.1:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }};
|
||||||
proxy_pass kube_apiserver;
|
proxy_pass kube_apiserver;
|
||||||
proxy_timeout 10m;
|
proxy_timeout 10m;
|
||||||
proxy_connect_timeout 1s;
|
proxy_connect_timeout 1s;
|
||||||
|
|
Loading…
Reference in a new issue