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
7adeec3e
Commit
7adeec3e
authored
Sep 02, 2016
by
Miao Luo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update salt usage to accelerate kube-up.
Use state.show_highstate to wait for init highstate functions to be done on each node. Then start highstate in parallel on all the minions.
parent
9691b820
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
util.sh
cluster/vsphere/util.sh
+5
-5
No files found.
cluster/vsphere/util.sh
View file @
7adeec3e
...
@@ -465,18 +465,18 @@ function kube-up {
...
@@ -465,18 +465,18 @@ function kube-up {
printf
"Waiting for salt-master to be up on
${
KUBE_MASTER
}
...
\n
"
printf
"Waiting for salt-master to be up on
${
KUBE_MASTER
}
...
\n
"
remote-pgrep
${
KUBE_MASTER_IP
}
"salt-master"
remote-pgrep
${
KUBE_MASTER_IP
}
"salt-master"
printf
"Waiting for all packages to be installed on
${
KUBE_MASTER
}
...
\n
"
kube-check
${
KUBE_MASTER_IP
}
'sudo salt "kubernetes-master" state.highstate -t 30 | grep -E "Failed:[[:space:]]+0"'
local
i
local
i
for
((
i
=
0
;
i<
${#
NODE_NAMES
[@]
}
;
i++
))
;
do
for
((
i
=
0
;
i<
${#
NODE_NAMES
[@]
}
;
i++
))
;
do
printf
"Waiting for salt-minion to be up on
${
NODE_NAMES
[
$i
]
}
....
\n
"
printf
"Waiting for salt-minion to be up on
${
NODE_NAMES
[
$i
]
}
....
\n
"
remote-pgrep
${
KUBE_NODE_IP_ADDRESSES
[
$i
]
}
"salt-minion"
remote-pgrep
${
KUBE_NODE_IP_ADDRESSES
[
$i
]
}
"salt-minion"
printf
"Waiting for all salt packages to be installed on
${
NODE_NAMES
[
$i
]
}
....
\n
"
kube-check
${
KUBE_MASTER_IP
}
'sudo salt '
"
${
NODE_NAMES
[
$i
]
}
"
' state.highstate -t 30 | grep -E "Failed:[[:space:]]+0"'
printf
" OK
\n
"
printf
" OK
\n
"
done
done
printf
"Waiting for init highstate to be done on all nodes (this can take a few minutes) ...
\n
"
kube-check
${
KUBE_MASTER_IP
}
'sudo salt '
\'
'*'
\'
' state.show_highstate -t 50'
printf
"Waiting for all packages to be installed on all nodes (this can take a few minutes) ...
\n
"
kube-check
${
KUBE_MASTER_IP
}
'sudo salt '
\'
'*'
\'
' state.highstate -t 50 | grep -E "Failed:[[:space:]]+0"'
echo
echo
echo
"Waiting for master and node initialization."
echo
"Waiting for master and node initialization."
...
...
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