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
7760d079
Commit
7760d079
authored
Jun 12, 2015
by
Adam Sunderland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update SSH User For Master SSH Check
parent
f39f2f04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
util.sh
cluster/aws/util.sh
+2
-2
No files found.
cluster/aws/util.sh
View file @
7760d079
...
@@ -768,7 +768,7 @@ function kube-up {
...
@@ -768,7 +768,7 @@ function kube-up {
echo
-n
Attempt
"
$((
$attempt
+
1
))
"
to check
for
SSH to master
echo
-n
Attempt
"
$((
$attempt
+
1
))
"
to check
for
SSH to master
local
output
local
output
local
ok
=
1
local
ok
=
1
output
=
$(
ssh
-oStrictHostKeyChecking
=
no
-i
"
${
AWS_SSH_KEY
}
"
ubuntu
@
${
KUBE_MASTER_IP
}
uptime
2>
$LOG
)
||
ok
=
0
output
=
$(
ssh
-oStrictHostKeyChecking
=
no
-i
"
${
AWS_SSH_KEY
}
"
${
SSH_USER
}
@
${
KUBE_MASTER_IP
}
uptime
2>
$LOG
)
||
ok
=
0
if
[[
${
ok
}
==
0
]]
;
then
if
[[
${
ok
}
==
0
]]
;
then
if
((
attempt
>
30
))
;
then
if
((
attempt
>
30
))
;
then
echo
echo
...
@@ -794,7 +794,7 @@ function kube-up {
...
@@ -794,7 +794,7 @@ function kube-up {
echo
-n
Attempt
"
$((
$attempt
+
1
))
"
to check
for
salt-master
echo
-n
Attempt
"
$((
$attempt
+
1
))
"
to check
for
salt-master
local
output
local
output
local
ok
=
1
local
ok
=
1
output
=
$(
ssh
-oStrictHostKeyChecking
=
no
-i
"
${
AWS_SSH_KEY
}
"
ubuntu
@
${
KUBE_MASTER_IP
}
pgrep salt-master 2>
$LOG
)
||
ok
=
0
output
=
$(
ssh
-oStrictHostKeyChecking
=
no
-i
"
${
AWS_SSH_KEY
}
"
${
SSH_USER
}
@
${
KUBE_MASTER_IP
}
pgrep salt-master 2>
$LOG
)
||
ok
=
0
if
[[
${
ok
}
==
0
]]
;
then
if
[[
${
ok
}
==
0
]]
;
then
if
((
attempt
>
30
))
;
then
if
((
attempt
>
30
))
;
then
echo
echo
...
...
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