Skip to content

Commit

Permalink
Do not wait pod deletion one by one to accelerate install (#2360)
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater authored Feb 20, 2023
1 parent 1974f8b commit 092aa08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3591,11 +3591,10 @@ echo ""
echo "[Step 4/6] Delete pod that not in host network mode"
for ns in $(kubectl get ns --no-headers -o custom-columns=NAME:.metadata.name); do
for pod in $(kubectl get pod --no-headers -n "$ns" --field-selector spec.restartPolicy=Always -o custom-columns=NAME:.metadata.name,HOST:spec.hostNetwork | awk '{if ($2!="true") print $1}'); do
kubectl delete pod "$pod" -n "$ns" --ignore-not-found
kubectl delete pod "$pod" -n "$ns" --ignore-not-found --wait=false
done
done

sleep 5
kubectl rollout status daemonset/kube-ovn-pinger -n kube-system --timeout 300s
kubectl rollout status deployment/coredns -n kube-system --timeout 600s
echo "-------------------------------"
Expand Down

0 comments on commit 092aa08

Please sign in to comment.