This commit is contained in:
hophacker 2020-09-07 10:02:50 +08:00
parent e85365a374
commit 98125fc388

View File

@ -402,9 +402,9 @@ function klogs {
done
if [[ "$PROJECT" != "" ]]; then
kubectl --context $KCONTEXT logs -f deployment/$PROJECT --all-containers=true --since=5s --pod-running-timeout=2s $finalopts
kubectl logs -f deployment/$PROJECT --all-containers=true --since=5s --pod-running-timeout=2s $finalopts
elif [[ "$INSTANCE" != "" ]]; then
kubectl --context $KCONTEXT logs -f --max-log-requests=10 -l app.kubernetes.io/instance=$INSTANCE
kubectl logs -f --max-log-requests=10 -l app.kubernetes.io/instance=$INSTANCE
fi
}