Skip to content

Commit

Permalink
fix installation script
Browse files Browse the repository at this point in the history
1. add timeout for kubectl rollout status;
2. sleep 5 seconds after deleting Pods.
  • Loading branch information
zhangzujian committed Dec 30, 2021
1 parent 270d28e commit c5f4c8e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ fi

kubectl apply -f kube-ovn-crd.yaml
kubectl apply -f ovn.yaml
kubectl rollout status deployment/ovn-central -n kube-system
kubectl rollout status deployment/ovn-central -n kube-system --timeout 300s
echo "-------------------------------"
echo ""

Expand Down Expand Up @@ -2326,8 +2326,8 @@ spec:
EOF

kubectl apply -f kube-ovn.yaml
kubectl rollout status deployment/kube-ovn-controller -n kube-system
kubectl rollout status daemonset/kube-ovn-cni -n kube-system
kubectl rollout status deployment/kube-ovn-controller -n kube-system --timeout 300s
kubectl rollout status daemonset/kube-ovn-cni -n kube-system --timeout 300s
echo "-------------------------------"
echo ""

Expand All @@ -2338,8 +2338,9 @@ for ns in $(kubectl get ns --no-headers -o custom-columns=NAME:.metadata.name);
done
done

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

Expand Down

0 comments on commit c5f4c8e

Please sign in to comment.