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
8cff43df
Commit
8cff43df
authored
Apr 02, 2015
by
Jerzy Szczepkowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6330 from jayunit100/local-up-fix
Check to prevent split brain api-servers/api-clients which can happen if...
parents
723aa860
1cc61174
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
local-up-cluster.sh
hack/local-up-cluster.sh
+10
-0
No files found.
hack/local-up-cluster.sh
View file @
8cff43df
...
@@ -49,6 +49,16 @@ API_CORS_ALLOWED_ORIGINS=${API_CORS_ALLOWED_ORIGINS:-"/127.0.0.1(:[0-9]+)?$,/loc
...
@@ -49,6 +49,16 @@ API_CORS_ALLOWED_ORIGINS=${API_CORS_ALLOWED_ORIGINS:-"/127.0.0.1(:[0-9]+)?$,/loc
KUBELET_PORT
=
${
KUBELET_PORT
:-
10250
}
KUBELET_PORT
=
${
KUBELET_PORT
:-
10250
}
LOG_LEVEL
=
${
LOG_LEVEL
:-
3
}
LOG_LEVEL
=
${
LOG_LEVEL
:-
3
}
# For the common local scenario, fail fast if server is already running.
# this can happen if you run local-up-cluster.sh twice and kill etcd in between.
curl
$API_HOST
:
$API_PORT
if
[
!
$?
-eq
0
]
;
then
echo
"API SERVER port is free, proceeding..."
else
echo
"ERROR starting API SERVER, exiting. Some host on
$API_HOST
is serving already on
$API_PORT
"
exit
1
fi
# Detect the OS name/arch so that we can find our binary
# Detect the OS name/arch so that we can find our binary
case
"
$(
uname
-s
)
"
in
case
"
$(
uname
-s
)
"
in
Darwin
)
Darwin
)
...
...
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