Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
130c67f1
Commit
130c67f1
authored
Mar 04, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22474 from bprashanth/local-up
Auto commit by PR queue bot
parents
51befb8c
0aa5502f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
local-up-cluster.sh
hack/local-up-cluster.sh
+9
-2
No files found.
hack/local-up-cluster.sh
View file @
130c67f1
...
...
@@ -26,7 +26,11 @@ ALLOW_SECURITY_CONTEXT=${ALLOW_SECURITY_CONTEXT:-""}
RUNTIME_CONFIG
=
${
RUNTIME_CONFIG
:-
""
}
NET_PLUGIN
=
${
NET_PLUGIN
:-
""
}
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
ENABLE_CLUSTER_DNS
=
${
KUBE_ENABLE_CLUSTER_DNS
:-
true
}
# We disable cluster DNS by default because this script uses docker0 (or whatever
# container bridge docker is currently using) and we don't know the IP of the
# DNS pod to pass in as --cluster-dns. To set this up by hand, set this flag
# and change DNS_SERVER_IP to the appropriate IP.
ENABLE_CLUSTER_DNS
=
${
KUBE_ENABLE_CLUSTER_DNS
:-
false
}
DNS_SERVER_IP
=
${
KUBE_DNS_SERVER_IP
:-
10
.0.0.10
}
DNS_DOMAIN
=
${
KUBE_DNS_NAME
:-
"cluster.local"
}
DNS_REPLICAS
=
${
KUBE_DNS_REPLICAS
:-
1
}
...
...
@@ -310,7 +314,10 @@ function start_kubelet {
if
[[
"
${
ENABLE_CLUSTER_DNS
}
"
=
true
]]
;
then
dns_args
=
"--cluster-dns=
${
DNS_SERVER_IP
}
--cluster-domain=
${
DNS_DOMAIN
}
"
else
dns_args
=
"--cluster-dns=127.0.0.1"
# To start a private DNS server set ENABLE_CLUSTER_DNS and
# DNS_SERVER_IP/DOMAIN. This will at least provide a working
# DNS server for real world hostnames.
dns_args
=
"--cluster-dns=8.8.8.8"
fi
net_plugin_args
=
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment