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
e727bd52
Commit
e727bd52
authored
8 years ago
by
Matthew Mosesohn
Browse files
Options
Downloads
Patches
Plain Diff
Add option to disable ipv6 dns lookup
New variable disable_ipv6_dns in kubernetes/preinstall.
parent
9be09946
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes/preinstall/defaults/main.yml
+4
-0
4 additions, 0 deletions
roles/kubernetes/preinstall/defaults/main.yml
roles/kubernetes/preinstall/tasks/main.yml
+8
-0
8 additions, 0 deletions
roles/kubernetes/preinstall/tasks/main.yml
with
12 additions
and
0 deletions
roles/kubernetes/preinstall/defaults/main.yml
+
4
−
0
View file @
e727bd52
...
...
@@ -29,6 +29,10 @@ common_required_pkgs:
-
rsync
-
bash-completion
# Set to true if your network does not support IPv6
# This maybe necessary for pulling Docker images from
# GCE docker repository
disable_ipv6_dns
:
false
# For the openstack integration kubelet will need credentials to access
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/preinstall/tasks/main.yml
+
8
−
0
View file @
e727bd52
...
...
@@ -97,6 +97,14 @@
with_items
:
"
{{required_pkgs
|
default([])
|
union(common_required_pkgs|default([]))}}"
when
:
ansible_os_family != "CoreOS"
-
name
:
Disable IPv6 DNS lookup
lineinfile
:
dest
:
/etc/gai.conf
line
:
"
precedence
::ffff:0:0/96
100"
state
:
present
backup
:
yes
when
:
disable_ipv6_dns and ansible_os_family != "CoreOS"
# Todo : selinux configuration
-
name
:
Set selinux policy to permissive
selinux
:
policy=targeted state=permissive
...
...
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