Skip to content

Commit

Permalink
feat: only show error log of kube-ovn-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed May 9, 2020
1 parent e1d2ae9 commit aef4336
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ diagnose(){
case $type in
all)
echo "### kube-ovn-controller recent log"
kubectl logs -n $KUBE_OVN_NS -l app=kube-ovn-controller --tail=15
kubectl logs -n $KUBE_OVN_NS -l app=kube-ovn-controller --tail=100 | grep E$(date +%m%d)
echo ""
pingers=$(kubectl get pod -n $KUBE_OVN_NS | grep kube-ovn-pinger | awk '{print $1}')
for pinger in $pingers
Expand Down
2 changes: 1 addition & 1 deletion dist/images/kubectl-ko
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ diagnose(){
case $type in
all)
echo "### kube-ovn-controller recent log"
kubectl logs -n $KUBE_OVN_NS -l app=kube-ovn-controller --tail=15
kubectl logs -n $KUBE_OVN_NS -l app=kube-ovn-controller --tail=100 | grep E$(date +%m%d)
echo ""
pingers=$(kubectl get pod -n $KUBE_OVN_NS | grep kube-ovn-pinger | awk '{print $1}')
for pinger in $pingers
Expand Down

0 comments on commit aef4336

Please sign in to comment.