Authored by jimi.ji

docker

... ... @@ -52,8 +52,8 @@
<file leaf-file-name="qcloud.sh" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloud.sh">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="245">
<caret line="43" column="14" lean-forward="true" selection-start-line="43" selection-start-column="14" selection-end-line="43" selection-end-column="14" />
<state relative-caret-position="164">
<caret line="40" column="95" lean-forward="false" selection-start-line="40" selection-start-column="29" selection-end-line="40" selection-end-column="95" />
<folding />
</state>
</provider>
... ... @@ -609,12 +609,12 @@
<updated>1545890692513</updated>
<workItem from="1545890694011" duration="11746000" />
<workItem from="1545905663805" duration="1370000" />
<workItem from="1545965888175" duration="10740000" />
<workItem from="1545965888175" duration="11761000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="23856000" />
<option name="totallyTimeSpent" value="24877000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="744" extended-state="6" />
... ... @@ -797,8 +797,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloud.sh">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="245">
<caret line="43" column="14" lean-forward="true" selection-start-line="43" selection-start-column="14" selection-end-line="43" selection-end-column="14" />
<state relative-caret-position="164">
<caret line="40" column="95" lean-forward="false" selection-start-line="40" selection-start-column="29" selection-end-line="40" selection-end-column="95" />
<folding />
</state>
</provider>
... ...
... ... @@ -23,7 +23,7 @@ do
let waitnum=waitnum+1
echo "print the cluster info "
/usr/local/bin/kubectl get pods |grep $serviceName
sleep 5
## sleep 5
done
## check service is done
num=1
... ... @@ -38,9 +38,9 @@ do
echo "print the cluster info "
/usr/local/bin/kubectl get pods |grep $serviceName
newrunning=$(/usr/local/bin/kubectl get pods |grep "$serviceName" |awk '$3!="Running"' |wc -l)
newredy=$(/usr/local/bin/kubectl get pods |grep "$serviceName" |awk '$2!="1/1" || $2!="2/2"' |wc -l)
newredy=$(/usr/local/bin/kubectl get pods |grep "$serviceName" |awk '$2!="1/1" or $2!="2/2"' |wc -l)
echo "newrunning is $newrunning ,newredy is $newredy"
if [ "$newrunning" -eq 0 && "$newredy" -eq 0 ];then
if [ "$newrunning" -eq 0 -o "$newredy" -eq 0 ];then
echo "end with the cluster check the publish is ok"
break;
fi
... ...