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
31a7b7d2
Commit
31a7b7d2
authored
7 years ago
by
Spencer Smith
Browse files
Options
Downloads
Patches
Plain Diff
default to kubedns and set nxdomain in kubedns deployment if that's the dns_mode
parent
8eb60f56
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
inventory/group_vars/k8s-cluster.yml
+1
-1
1 addition, 1 deletion
inventory/group_vars/k8s-cluster.yml
roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml
+3
-0
3 additions, 0 deletions
roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml
with
4 additions
and
1 deletion
inventory/group_vars/k8s-cluster.yml
+
1
−
1
View file @
31a7b7d2
...
...
@@ -98,7 +98,7 @@ cluster_name: cluster.local
# Subdomains of DNS domain to be resolved via /etc/resolv.conf for hostnet pods
ndots
:
2
# Can be dnsmasq_kubedns, kubedns or none
dns_mode
:
dnsmasq_
kubedns
dns_mode
:
kubedns
# Can be docker_dns, host_resolvconf or none
resolvconf_mode
:
docker_dns
# Deploy netchecker app to verify DNS resolve as an HTTP service
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml
+
3
−
0
View file @
31a7b7d2
...
...
@@ -82,6 +82,9 @@ spec:
-
--server=127.0.0.1#10053
{
%
if kube_log_level == '4' %
}
-
--log-queries
{
%
endif %
}
{
%
if dns_mode == 'kubedns' %
}
-
--local=/{{ bogus_domains }}
{
%
endif %
}
ports
:
-
containerPort
:
53
...
...
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