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
2f93978d
Commit
2f93978d
authored
Sep 08, 2015
by
Chao Xu
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13521 from derekwaynecarr/improve_salt_reliability
Improve reliability of salt-minion on vagrant master
parents
3a04f7ea
7afec6b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
util.sh
cluster/vagrant/util.sh
+3
-0
No files found.
cluster/vagrant/util.sh
View file @
2f93978d
...
@@ -199,6 +199,9 @@ function verify-cluster {
...
@@ -199,6 +199,9 @@ function verify-cluster {
local
machine
=
"master"
local
machine
=
"master"
local
-a
required_daemon
=(
"salt-master"
"salt-minion"
"kubelet"
)
local
-a
required_daemon
=(
"salt-master"
"salt-minion"
"kubelet"
)
local
validated
=
"1"
local
validated
=
"1"
# This is a hack, but sometimes the salt-minion gets stuck on the master, so we just restart it
# to ensure that users never wait forever
vagrant ssh
"
$machine
"
-c
"sudo systemctl restart salt-minion"
until
[[
"
$validated
"
==
"0"
]]
;
do
until
[[
"
$validated
"
==
"0"
]]
;
do
validated
=
"0"
validated
=
"0"
local
daemon
local
daemon
...
...
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