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
0b7b2de8
Commit
0b7b2de8
authored
Apr 25, 2018
by
Yonatan Kiron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add optional flag of node port range
parent
a53df4d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
local-up-cluster.sh
hack/local-up-cluster.sh
+6
-0
No files found.
hack/local-up-cluster.sh
View file @
0b7b2de8
...
...
@@ -217,6 +217,7 @@ API_SECURE_PORT=${API_SECURE_PORT:-6443}
API_HOST
=
${
API_HOST
:-
localhost
}
API_HOST_IP
=
${
API_HOST_IP
:-
"127.0.0.1"
}
ADVERTISE_ADDRESS
=
${
ADVERTISE_ADDRESS
:-
""
}
NODE_PORT_RANGE
=
${
NODE_PORT_RANGE
:-
""
}
API_BIND_ADDR
=
${
API_BIND_ADDR
:-
"0.0.0.0"
}
EXTERNAL_HOSTNAME
=
${
EXTERNAL_HOSTNAME
:-
localhost
}
...
...
@@ -524,6 +525,10 @@ function start_apiserver {
if
[[
"
${
ADVERTISE_ADDRESS
}
"
!=
""
]]
;
then
advertise_address
=
"--advertise-address=
${
ADVERTISE_ADDRESS
}
"
fi
node_port_range
=
""
if
[[
"
${
NODE_PORT_RANGE
}
"
!=
""
]]
;
then
node_port_range
=
"--service-node-port-range=
${
NODE_PORT_RANGE
}
"
fi
# Create CA signers
if
[[
"
${
ENABLE_SINGLE_CA_SIGNER
:-}
"
=
true
]]
;
then
...
...
@@ -565,6 +570,7 @@ function start_apiserver {
${
CONTROLPLANE_SUDO
}
"
${
GO_OUT
}
/hyperkube"
apiserver
${
swagger_arg
}
${
audit_arg
}
${
authorizer_arg
}
${
priv_arg
}
${
runtime_config
}
\
${
cloud_config_arg
}
\
${
advertise_address
}
\
${
node_port_range
}
\
--v
=
${
LOG_LEVEL
}
\
--vmodule
=
"
${
LOG_SPEC
}
"
\
--cert-dir
=
"
${
CERT_DIR
}
"
\
...
...
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