Skip to content

Commit

Permalink
keep ovs cpu:mem 1:1 and show pod status in kube-system namespace bef…
Browse files Browse the repository at this point in the history
…ore diagnose (#3537)

Signed-off-by: bobz965 <[email protected]>
  • Loading branch information
bobz965 authored Dec 19, 2023
1 parent 2f76694 commit 8081f43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3287,7 +3287,7 @@ spec:
cpu: 300m
memory: 300Mi
limits:
cpu: 3
cpu: 4
memory: 4Gi
volumeMounts:
- mountPath: /var/run/openvswitch
Expand Down Expand Up @@ -4601,8 +4601,10 @@ if ! sh -c "echo \":$PATH:\" | grep -q \":/usr/local/bin:\""; then
fi

echo "[Step 6/6] Run network diagnose"
kubectl cp kube-system/"$(kubectl -n kube-system get pods -o wide | grep cni | awk '{print $1}' | awk 'NR==1{print}')":/kube-ovn/kubectl-ko /usr/local/bin/kubectl-ko
kubectl cp kube-system/"$(kubectl -n kube-system get pods -o wide | grep cni | awk '{print $1}' | awk 'NR==1{print}')":/kube-ovn/kubectl-ko /usr/local/bin/kubectl-ko
chmod +x /usr/local/bin/kubectl-ko
# show pod status in kube-system namespace before diagnose
kubectl get pod -n kube-system -o wide
kubectl ko diagnose all

echo "-------------------------------"
Expand Down

0 comments on commit 8081f43

Please sign in to comment.