Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
cc382f24
Unverified
Commit
cc382f24
authored
Mar 22, 2023
by
Kay Yan
Committed by
GitHub
Mar 22, 2023
Browse files
Options
Downloads
Patches
Plain Diff
haproxy-proxy-ipv6 (#9674)
parent
9a8bf0e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes/node/templates/loadbalancer/haproxy.cfg.j2
+7
-1
7 additions, 1 deletion
roles/kubernetes/node/templates/loadbalancer/haproxy.cfg.j2
roles/kubernetes/node/templates/loadbalancer/nginx.conf.j2
+1
-1
1 addition, 1 deletion
roles/kubernetes/node/templates/loadbalancer/nginx.conf.j2
with
8 additions
and
2 deletions
roles/kubernetes/node/templates/loadbalancer/haproxy.cfg.j2
+
7
−
1
View file @
cc382f24
...
@@ -21,13 +21,19 @@ defaults
...
@@ -21,13 +21,19 @@ 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 0.0.0.0:{{ loadbalancer_apiserver_healthcheck_port }}
{% if enable_dual_stack_networks -%}
bind :::{{ loadbalancer_apiserver_healthcheck_port }}
{% endif -%}
mode http
mode http
monitor-uri /healthz
monitor-uri /healthz
{% endif %}
{% endif %}
frontend kube_api_frontend
frontend kube_api_frontend
bind 127.0.0.1:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }}
bind 127.0.0.1:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }}
{% if enable_dual_stack_networks -%}
bind [::1]:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }};
{% endif -%}
mode tcp
mode tcp
option tcplog
option tcplog
default_backend kube_api_backend
default_backend kube_api_backend
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/node/templates/loadbalancer/nginx.conf.j2
+
1
−
1
View file @
cc382f24
...
@@ -21,7 +21,7 @@ stream {
...
@@ -21,7 +21,7 @@ stream {
server {
server {
listen 127.0.0.1:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }};
listen 127.0.0.1:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }};
{% if enable_dual_stack_networks -%}
{% if enable_dual_stack_networks -%}
listen [::]:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }};
listen [::
1
]:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }};
{% endif -%}
{% endif -%}
proxy_pass kube_apiserver;
proxy_pass kube_apiserver;
proxy_timeout 10m;
proxy_timeout 10m;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment