This commit is contained in:
jinlccs 2017-09-21 14:35:33 -07:00
Родитель 8a91180bd9
Коммит 5355dcbe64
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -493,8 +493,10 @@ scriptblocks = {
"runscriptonall ./scripts/prepare_ubuntu.sh",
"-y deploy",
"-y updateworker",
"sleep 30",
"-y kubernetes labels",
"kubernetes uncordon",
"sleep 10",
"mount",
"webui",
"docker push restfulapi",
@ -3360,6 +3362,13 @@ def run_command( args, command, nargs, parser ):
if command =="clean":
clean_deployment()
exit()
elif command == "sleep":
sleeptime = 10 if len(nargs)<1 else int(nargs[0])
print "Sleep for %s sec ... " % sleeptime
for si in range(sleeptime):
print "%s sec elapse ..." % si
time.sleep(1)
elif command == "connect":
check_master_ETCD_status()