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
e0fefbee
Commit
e0fefbee
authored
Jul 28, 2017
by
wulihua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue:
https://github.com/kubernetes/kubernetes/issues/49728
Let user choose ADVERTISE_ADDRESS in case the apiserver heuristic for the external address is broken
parent
b350527e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
local-up-cluster.sh
hack/local-up-cluster.sh
+4
-0
No files found.
hack/local-up-cluster.sh
View file @
e0fefbee
...
@@ -199,6 +199,7 @@ API_SECURE_PORT=${API_SECURE_PORT:-6443}
...
@@ -199,6 +199,7 @@ 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,
# 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"
}
ADVERTISE_ADDRESS
=
${
ADVERTISE_ADDRESS
:-
""
}
API_BIND_ADDR
=
${
API_BIND_ADDR
:-
"0.0.0.0"
}
API_BIND_ADDR
=
${
API_BIND_ADDR
:-
"0.0.0.0"
}
EXTERNAL_HOSTNAME
=
${
EXTERNAL_HOSTNAME
:-
localhost
}
EXTERNAL_HOSTNAME
=
${
EXTERNAL_HOSTNAME
:-
localhost
}
...
@@ -458,6 +459,9 @@ function start_apiserver {
...
@@ -458,6 +459,9 @@ function start_apiserver {
if
[[
"
${
API_HOST_IP
}
"
!=
"127.0.0.1"
]]
;
then
if
[[
"
${
API_HOST_IP
}
"
!=
"127.0.0.1"
]]
;
then
advertise_address
=
"--advertise_address=
${
API_HOST_IP
}
"
advertise_address
=
"--advertise_address=
${
API_HOST_IP
}
"
fi
fi
if
[[
"
${
ADVERTISE_ADDRESS
}
"
!=
""
]]
;
then
advertise_address
=
"--advertise_address=
${
ADVERTISE_ADDRESS
}
"
fi
# Create CA signers
# Create CA signers
if
[[
"
${
ENABLE_SINGLE_CA_SIGNER
:-}
"
=
true
]]
;
then
if
[[
"
${
ENABLE_SINGLE_CA_SIGNER
:-}
"
=
true
]]
;
then
...
...
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