fix-api-lb-binds-interface
This commit is contained in:
parent
1530411218
commit
633e819e5c
4 changed files with 6 additions and 2 deletions
|
@ -21,7 +21,7 @@ defaults
|
||||||
|
|
||||||
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
|
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
|
||||||
frontend healthz
|
frontend healthz
|
||||||
bind *:{{ loadbalancer_apiserver_healthcheck_port }}
|
bind 127.0.0.1:{{ loadbalancer_apiserver_healthcheck_port }}
|
||||||
mode http
|
mode http
|
||||||
monitor-uri /healthz
|
monitor-uri /healthz
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -43,7 +43,7 @@ http {
|
||||||
|
|
||||||
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
|
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
|
||||||
server {
|
server {
|
||||||
listen {{ loadbalancer_apiserver_healthcheck_port }};
|
listen 127.0.0.1:{{ loadbalancer_apiserver_healthcheck_port }};
|
||||||
{% if enable_dual_stack_networks -%}
|
{% if enable_dual_stack_networks -%}
|
||||||
listen [::]:{{ loadbalancer_apiserver_healthcheck_port }};
|
listen [::]:{{ loadbalancer_apiserver_healthcheck_port }};
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
|
@ -25,10 +25,12 @@ spec:
|
||||||
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
|
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
host: 127.0.0.1
|
||||||
path: /healthz
|
path: /healthz
|
||||||
port: {{ loadbalancer_apiserver_healthcheck_port }}
|
port: {{ loadbalancer_apiserver_healthcheck_port }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
host: 127.0.0.1
|
||||||
path: /healthz
|
path: /healthz
|
||||||
port: {{ loadbalancer_apiserver_healthcheck_port }}
|
port: {{ loadbalancer_apiserver_healthcheck_port }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
|
@ -25,10 +25,12 @@ spec:
|
||||||
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
|
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
host: 127.0.0.1
|
||||||
path: /healthz
|
path: /healthz
|
||||||
port: {{ loadbalancer_apiserver_healthcheck_port }}
|
port: {{ loadbalancer_apiserver_healthcheck_port }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
host: 127.0.0.1
|
||||||
path: /healthz
|
path: /healthz
|
||||||
port: {{ loadbalancer_apiserver_healthcheck_port }}
|
port: {{ loadbalancer_apiserver_healthcheck_port }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
Loading…
Reference in a new issue