diff --git a/hack/ci/e2e-k8s.sh b/hack/ci/e2e-k8s.sh index f440d64d52..6e692c3a6e 100755 --- a/hack/ci/e2e-k8s.sh +++ b/hack/ci/e2e-k8s.sh @@ -115,7 +115,9 @@ create_cluster() { apiServer_extra_args="${apiServer_extra_args} \"logging-format\": \"${CLUSTER_LOG_FORMAT}\"" fi - kubelet_extra_args=" \"v\": \"${KIND_CLUSTER_LOG_LEVEL}\"" + kubelet_extra_args=" \"v\": \"${KIND_CLUSTER_LOG_LEVEL}\" + \"container-log-max-files\": \"10\" + \"container-log-max-size\": \"100Mi\"" KUBELET_LOG_FORMAT=${KUBELET_LOG_FORMAT:-$CLUSTER_LOG_FORMAT} if [ -n "$KUBELET_LOG_FORMAT" ]; then check_structured_log_support "KUBECTL_LOG_FORMAT"