mirror of https://github.com/k3s-io/k3s
commit
b8ddc7945b
|
@ -66,19 +66,19 @@ spec:
|
||||||
- '-c'
|
- '-c'
|
||||||
- >
|
- >
|
||||||
LIVENESS_THRESHOLD_SECONDS=${LIVENESS_THRESHOLD_SECONDS:-300};
|
LIVENESS_THRESHOLD_SECONDS=${LIVENESS_THRESHOLD_SECONDS:-300};
|
||||||
STUCK_THRESHOLD_SECONDS=${LIVENESS_THRESHOLD_SECONDS:-900};
|
STUCK_THRESHOLD_SECONDS=${STUCK_THRESHOLD_SECONDS:-900};
|
||||||
if [ ! -e /var/log/fluentd-buffers ];
|
if [ ! -e /var/log/fluentd-buffers ];
|
||||||
then
|
then
|
||||||
exit 1;
|
exit 1;
|
||||||
fi;
|
fi;
|
||||||
touch -d "${STUCK_THRESHOLD_SECONDS} seconds ago" /tmp/marker-stuck;
|
touch -d "${STUCK_THRESHOLD_SECONDS} seconds ago" /tmp/marker-stuck;
|
||||||
if [[ -z "$(find /var/log/fluentd-buffers -type f -newer /tmp/marker-stuck -print -quit)" ]];
|
if [ -z "$(find /var/log/fluentd-buffers -type d -newer /tmp/marker-stuck -print -quit)" ];
|
||||||
then
|
then
|
||||||
rm -rf /var/log/fluentd-buffers;
|
rm -rf /var/log/fluentd-buffers;
|
||||||
exit 1;
|
exit 1;
|
||||||
fi;
|
fi;
|
||||||
touch -d "${LIVENESS_THRESHOLD_SECONDS} seconds ago" /tmp/marker-liveness;
|
touch -d "${LIVENESS_THRESHOLD_SECONDS} seconds ago" /tmp/marker-liveness;
|
||||||
if [[ -z "$(find /var/log/fluentd-buffers -type f -newer /tmp/marker-liveness -print -quit)" ]];
|
if [ -z "$(find /var/log/fluentd-buffers -type d -newer /tmp/marker-liveness -print -quit)" ];
|
||||||
then
|
then
|
||||||
exit 1;
|
exit 1;
|
||||||
fi;
|
fi;
|
||||||
|
|
Loading…
Reference in New Issue