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
f3fb966e
Commit
f3fb966e
authored
Mar 29, 2017
by
jayunit100
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
local up dns defaults
parent
30e010da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
local-up-cluster.sh
hack/local-up-cluster.sh
+5
-4
No files found.
hack/local-up-cluster.sh
View file @
f3fb966e
...
@@ -52,7 +52,7 @@ EVICTION_PRESSURE_TRANSITION_PERIOD=${EVICTION_PRESSURE_TRANSITION_PERIOD:-"1m"}
...
@@ -52,7 +52,7 @@ EVICTION_PRESSURE_TRANSITION_PERIOD=${EVICTION_PRESSURE_TRANSITION_PERIOD:-"1m"}
# container bridge docker is currently using) and we don't know the IP of the
# 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
# 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.
# and change DNS_SERVER_IP to the appropriate IP.
ENABLE_CLUSTER_DNS
=
${
KUBE_ENABLE_CLUSTER_DNS
:-
fals
e
}
ENABLE_CLUSTER_DNS
=
${
KUBE_ENABLE_CLUSTER_DNS
:-
tru
e
}
DNS_SERVER_IP
=
${
KUBE_DNS_SERVER_IP
:-
10
.0.0.10
}
DNS_SERVER_IP
=
${
KUBE_DNS_SERVER_IP
:-
10
.0.0.10
}
DNS_DOMAIN
=
${
KUBE_DNS_NAME
:-
"cluster.local"
}
DNS_DOMAIN
=
${
KUBE_DNS_NAME
:-
"cluster.local"
}
KUBECTL
=
${
KUBECTL
:-
cluster
/kubectl.sh
}
KUBECTL
=
${
KUBECTL
:-
cluster
/kubectl.sh
}
...
@@ -179,9 +179,12 @@ set +e
...
@@ -179,9 +179,12 @@ set +e
API_PORT
=
${
API_PORT
:-
8080
}
API_PORT
=
${
API_PORT
:-
8080
}
API_SECURE_PORT
=
${
API_SECURE_PORT
:-
6443
}
API_SECURE_PORT
=
${
API_SECURE_PORT
:-
6443
}
# WARNING: For DNS to work on most setups you should export API_HOST as the docker0 ip address,
API_HOST
=
${
API_HOST
:-
localhost
}
API_HOST
=
${
API_HOST
:-
localhost
}
API_HOST_IP
=
${
API_HOST_IP
:-
"127.0.0.1"
}
API_HOST_IP
=
${
API_HOST_IP
:-
"127.0.0.1"
}
API_BIND_ADDR
=
${
API_BIND_ADDR
:-
"0.0.0.0"
}
API_BIND_ADDR
=
${
API_BIND_ADDR
:-
"0.0.0.0"
}
KUBELET_HOST
=
${
KUBELET_HOST
:-
"127.0.0.1"
}
KUBELET_HOST
=
${
KUBELET_HOST
:-
"127.0.0.1"
}
# By default only allow CORS for requests on localhost
# By default only allow CORS for requests on localhost
API_CORS_ALLOWED_ORIGINS
=
${
API_CORS_ALLOWED_ORIGINS
:-
/127.0.0.1(
:[0-9]+
)?
$,
/localhost(
:[0-9]+
)?
$}
API_CORS_ALLOWED_ORIGINS
=
${
API_CORS_ALLOWED_ORIGINS
:-
/127.0.0.1(
:[0-9]+
)?
$,
/localhost(
:[0-9]+
)?
$}
...
@@ -305,7 +308,7 @@ cleanup()
...
@@ -305,7 +308,7 @@ cleanup()
{
{
echo
"Cleaning up..."
echo
"Cleaning up..."
# delete running images
# delete running images
# if [[ "${ENABLE_CLUSTER_DNS}" = true ]]; then
# if [[ "${ENABLE_CLUSTER_DNS}" =
=
true ]]; then
# Still need to figure why this commands throw an error: Error from server: client: etcd cluster is unavailable or misconfigured
# Still need to figure why this commands throw an error: Error from server: client: etcd cluster is unavailable or misconfigured
# ${KUBECTL} --namespace=kube-system delete service kube-dns
# ${KUBECTL} --namespace=kube-system delete service kube-dns
# And this one hang forever:
# And this one hang forever:
...
@@ -845,5 +848,3 @@ print_success
...
@@ -845,5 +848,3 @@ print_success
if
[[
"
${
ENABLE_DAEMON
}
"
=
false
]]
;
then
if
[[
"
${
ENABLE_DAEMON
}
"
=
false
]]
;
then
while
true
;
do
sleep
1
;
done
while
true
;
do
sleep
1
;
done
fi
fi
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