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
2df70d6a
Commit
2df70d6a
authored
9 years ago
by
ant31
Committed by
Smaine Kahlouch
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Docker dnsmasq
parent
ddaeb2b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/dnsmasq/tasks/main.yml
+0
-16
0 additions, 16 deletions
roles/dnsmasq/tasks/main.yml
roles/dnsmasq/templates/dnsmasq-pod.yml
+49
-0
49 additions, 0 deletions
roles/dnsmasq/templates/dnsmasq-pod.yml
with
49 additions
and
16 deletions
roles/dnsmasq/tasks/main.yml
+
0
−
16
View file @
2df70d6a
...
@@ -28,15 +28,6 @@
...
@@ -28,15 +28,6 @@
-
'
^127\.0\.0\.1(\s+){{
inventory_hostname
}}.*'
-
'
^127\.0\.0\.1(\s+){{
inventory_hostname
}}.*'
-
'
^::1(\s+){{
inventory_hostname
}}.*'
-
'
^::1(\s+){{
inventory_hostname
}}.*'
-
name
:
install dnsmasq and bindr9utils
apt
:
name
:
"
{{
item
}}"
state
:
present
update_cache
:
yes
with_items
:
-
dnsmasq
-
bind9utils
when
:
inventory_hostname in groups['kube-master']
-
name
:
ensure dnsmasq.d directory exists
-
name
:
ensure dnsmasq.d directory exists
file
:
file
:
...
@@ -54,13 +45,6 @@
...
@@ -54,13 +45,6 @@
-
restart dnsmasq
-
restart dnsmasq
when
:
inventory_hostname in groups['kube-master']
when
:
inventory_hostname in groups['kube-master']
-
name
:
enable dnsmasq
service
:
name
:
dnsmasq
state
:
started
enabled
:
yes
when
:
inventory_hostname in groups['kube-master']
-
name
:
update resolv.conf with new DNS setup
-
name
:
update resolv.conf with new DNS setup
template
:
template
:
src
:
resolv.conf.j2
src
:
resolv.conf.j2
...
...
This diff is collapsed.
Click to expand it.
roles/dnsmasq/templates/dnsmasq-pod.yml
0 → 100644
+
49
−
0
View file @
2df70d6a
---
apiVersion
:
v1
kind
:
Pod
metadata
:
name
:
dnsmasq
namespace
:
kube-system
spec
:
hostNetwork
:
true
containers
:
-
name
:
dnsmasq
image
:
andyshinn/dnsmasq:2.72
command
:
-
dnsmasq
args
:
-
-k
-
"
-7"
-
/etc/dnsmasq.d
-
--local-service
securityContext
:
capabilities
:
add
:
-
NET_ADMIN
imagePullPolicy
:
Always
resources
:
limits
:
cpu
:
100m
memory
:
256M
ports
:
-
name
:
dns
containerPort
:
53
hostPort
:
53
protocol
:
UDP
-
name
:
dns-tcp
containerPort
:
53
hostPort
:
53
protocol
:
TCP
volumeMounts
:
-
name
:
etcdnsmasqd
mountPath
:
/etc/dnsmasq.d
-
name
:
etcdnsmasqdavailable
mountPath
:
/etc/dnsmasq.d-available
volumes
:
-
name
:
etcdnsmasqd
hostPath
:
path
:
/etc/dnsmasq.d
-
name
:
etcdnsmasqdavailable
hostPath
:
path
:
/etc/dnsmasq.d-available
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