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
3ee91e15
Commit
3ee91e15
authored
7 years ago
by
Matthew Mosesohn
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use commas in no_proxy (#1782)
parent
ef47a733
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/kubespray-defaults/defaults/main.yaml
+13
-14
13 additions, 14 deletions
roles/kubespray-defaults/defaults/main.yaml
with
13 additions
and
14 deletions
roles/kubespray-defaults/defaults/main.yaml
+
13
−
14
View file @
3ee91e15
...
...
@@ -164,20 +164,19 @@ vault_secrets_dir: "{{ vault_base_dir }}/secrets"
## Set no_proxy to all assigned cluster IPs and hostnames
no_proxy
:
>-
127.0.0.1
localhost
{% if loadbalancer_apiserver is defined %}
{{ apiserver_loadbalancer_domain_name| default('') }}
{{ loadbalancer_apiserver.address | default('') }}
{% endif %}
{% for item in (groups['k8s-cluster'] + groups['etcd'] + groups['calico-rr']|default([]))|unique -%}
{{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(hostvars[item]['ansible_default_ipv4']['address'])) }}
{% if (item != hostvars[item]['ansible_hostname']) %} {{ hostvars[item]['ansible_hostname'] }}
{{ hostvars[item]['ansible_hostname'] }}.{{ dns_domain }}
{% endif %}
{{ item }}
{{ item }}.{{ dns_domain }}
{% endfor %}
{%- if loadbalancer_apiserver is defined -%}
{{ apiserver_loadbalancer_domain_name| default('') }},
{{ loadbalancer_apiserver.address | default('') }},
{%- endif -%}
{%- for item in (groups['k8s-cluster'] + groups['etcd'] + groups['calico-rr']|default([]))|unique -%}
{{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(hostvars[item]['ansible_default_ipv4']['address'])) }},
{%- if (item != hostvars[item]['ansible_hostname']) -%}
{{ hostvars[item]['ansible_hostname'] }},
{{ hostvars[item]['ansible_hostname'] }}.{{ dns_domain }},
{%- endif -%}
{{ item }},{{ item }}.{{ dns_domain }},
{%- endfor -%}
127.0.0.1,localhost
proxy_env
:
http_proxy
:
"
{{
http_proxy|
default
('')
}}"
...
...
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