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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
58b2f39c
Unverified
Commit
58b2f39c
authored
3 years ago
by
kakkotetsu
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add IPv6 listen directive to nginx if enable_dual_stack_networks (#8596)
parent
56d882ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kubernetes/node/templates/loadbalancer/nginx.conf.j2
+6
-0
6 additions, 0 deletions
roles/kubernetes/node/templates/loadbalancer/nginx.conf.j2
with
6 additions
and
0 deletions
roles/kubernetes/node/templates/loadbalancer/nginx.conf.j2
+
6
−
0
View file @
58b2f39c
...
@@ -20,6 +20,9 @@ stream {
...
@@ -20,6 +20,9 @@ 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 -%}
listen [::]:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }};
{% endif -%}
proxy_pass kube_apiserver;
proxy_pass kube_apiserver;
proxy_timeout 10m;
proxy_timeout 10m;
proxy_connect_timeout 1s;
proxy_connect_timeout 1s;
...
@@ -41,6 +44,9 @@ http {
...
@@ -41,6 +44,9 @@ http {
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
server {
server {
listen {{ loadbalancer_apiserver_healthcheck_port }};
listen {{ loadbalancer_apiserver_healthcheck_port }};
{% if enable_dual_stack_networks -%}
listen [::]:{{ loadbalancer_apiserver_healthcheck_port }};
{% endif -%}
location /healthz {
location /healthz {
access_log off;
access_log off;
return 200;
return 200;
...
...
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