repeatedly do k logs -f for klogs -i
This commit is contained in:
parent
c8ce55fa82
commit
b92974ec37
@ -402,7 +402,11 @@ function klogs {
|
|||||||
if [[ "$PROJECT" != "" ]]; then
|
if [[ "$PROJECT" != "" ]]; then
|
||||||
kubectl 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
|
elif [[ "$INSTANCE" != "" ]]; then
|
||||||
kubectl logs -f --max-log-requests=10 -l app.kubernetes.io/instance=$INSTANCE
|
while true; do
|
||||||
|
kubectl logs -f --max-log-requests=10 -l app.kubernetes.io/instance=$INSTANCE 1>&0
|
||||||
|
echo "Waiting..."
|
||||||
|
sleep 2
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user