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
c8dd1200
Commit
c8dd1200
authored
Oct 20, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15822 from ZJU-SEL/minor-clean-reconfDocker
Auto commit by PR queue bot
parents
7cbf249b
d45fc707
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
reconfDocker.sh
cluster/ubuntu/reconfDocker.sh
+12
-3
No files found.
cluster/ubuntu/reconfDocker.sh
View file @
c8dd1200
...
@@ -34,7 +34,7 @@ function config_etcd {
...
@@ -34,7 +34,7 @@ function config_etcd {
else
else
# enough timeout??
# enough timeout??
if
((
attempt
>
600
))
;
then
if
((
attempt
>
600
))
;
then
echo
"timeout
for waiting network config"
>
~/kube/err.log
echo
"timeout
waiting for /coreos.com/network/config"
>
>
~/kube/err.log
exit
2
exit
2
fi
fi
...
@@ -46,8 +46,17 @@ function config_etcd {
...
@@ -46,8 +46,17 @@ function config_etcd {
}
}
function
restart_docker
{
function
restart_docker
{
#wait some secs for /run/flannel/subnet.env ready
sleep
15
attempt
=
0
while
[[
!
-f
/run/flannel/subnet.env
]]
;
do
if
((
attempt
>
200
))
;
then
echo
"timeout waiting for /run/flannel/subnet.env"
>>
~/kube/err.log
exit
2
fi
attempt
=
$((
attempt+1
))
sleep
3
done
sudo
ip
link set
dev docker0 down
sudo
ip
link set
dev docker0 down
sudo
brctl delbr docker0
sudo
brctl delbr docker0
...
...
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