This commit is contained in:
Kay Yan 2022-12-19 18:53:55 -08:00 committed by GitHub
commit 5d4c4b47d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 2 deletions

View file

@ -21,7 +21,7 @@ defaults
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
frontend healthz
bind *:{{ loadbalancer_apiserver_healthcheck_port }}
bind 127.0.0.1:{{ loadbalancer_apiserver_healthcheck_port }}
mode http
monitor-uri /healthz
{% endif %}

View file

@ -43,7 +43,7 @@ http {
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
server {
listen {{ loadbalancer_apiserver_healthcheck_port }};
listen 127.0.0.1:{{ loadbalancer_apiserver_healthcheck_port }};
{% if enable_dual_stack_networks -%}
listen [::]:{{ loadbalancer_apiserver_healthcheck_port }};
{% endif -%}

View file

@ -25,10 +25,12 @@ spec:
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
livenessProbe:
httpGet:
host: 127.0.0.1
path: /healthz
port: {{ loadbalancer_apiserver_healthcheck_port }}
readinessProbe:
httpGet:
host: 127.0.0.1
path: /healthz
port: {{ loadbalancer_apiserver_healthcheck_port }}
{% endif -%}

View file

@ -25,10 +25,12 @@ spec:
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
livenessProbe:
httpGet:
host: 127.0.0.1
path: /healthz
port: {{ loadbalancer_apiserver_healthcheck_port }}
readinessProbe:
httpGet:
host: 127.0.0.1
path: /healthz
port: {{ loadbalancer_apiserver_healthcheck_port }}
{% endif -%}